/* cortexearl.com: the nwcortex.com light enterprise theme (same tokens, type and components), kept in one sheet
   for the landing page now and the subscriber pages (/app) later. Light theme only, like nwcortex.com. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-deep: #edf2f7;
  --ink: #161616;
  --ink-2: #393939;
  --muted: #525252;
  --muted-2: #6f6f6f;
  --line: #e0e0e0;
  --line-2: #c6c6c6;
  --blue: #0f5fd7;
  --blue-hover: #0043ce;
  --blue-tint: #edf5ff;
  --blue-deep: #001d6c;
  --teal: #0a7559;
  --teal-tint: #e6f5f0;
  --sans: 'IBM Plex Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, monospace;
  --w: 1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
.wrap { max-width: var(--w); margin: 0 auto; padding-inline: 2.5rem; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: #fff; padding: 0.7rem 1rem; }
.skip:hover, .skip:focus { color: #fff; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
header.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--blue); }
.brand .co { font-weight: 300; color: var(--muted); margin-left: 2px; letter-spacing: 0.01em; }
.links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.links a { color: var(--ink-2); font-size: 0.92rem; font-weight: 400; }
.links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 0.8rem 1.4rem;
  font: 500 0.95rem var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-secondary:hover { background: var(--blue-tint); color: var(--blue-hover); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%); padding: 0; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-block: 6rem 5.5rem; }
h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 strong { font-weight: 500; }
.lede { font-size: 1.2rem; color: var(--muted); line-height: 1.6; max-width: 560px; margin: 1.6rem 0 2.2rem; font-weight: 300; }
.lede strong { color: var(--ink); font-weight: 500; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.shot { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,29,108,0.25), 0 8px 20px -10px rgba(0,0,0,0.12); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.shot-bar span { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--muted-2); }
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); align-items: start; }
.rows li:last-child { border-bottom: 0; padding-bottom: 3.2rem; }   /* room for the chip that overlaps the corner */
.rows .what { font-size: 0.95rem; font-weight: 500; line-height: 1.35; }
.rows .meta { grid-column: 2; font-family: var(--mono); font-size: 0.75rem; color: var(--muted-2); }
.tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: var(--teal-tint); padding: 4px 8px; display: inline-block; align-self: flex-start; justify-self: start; }
.tag.blue { color: var(--blue); background: var(--blue-tint); }
.float-chip {
  position: absolute; left: -28px; bottom: -22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.2); padding: 14px 18px; display: flex; gap: 14px; align-items: center;
}
.float-chip .n { font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--blue-deep); }
.float-chip .l { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }

/* ---------- Stat band ---------- */
.band { border-bottom: 1px solid var(--line); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 2rem; }
.stat .n { font-size: 2.6rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.stat .l { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; }
h2 strong { font-weight: 500; }
.sec-blurb { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 520px; font-weight: 300; }

/* numbered list with rule (the stages of a project; who it's for) */
.sol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; list-style: none; }
.sol-item { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.sol-item.first { border-top-color: var(--blue); }
.sol-item .step { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 0.6rem; }
.sol-item.first .step { color: var(--blue); }
.sol-item h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.6rem; line-height: 1.3; }
.sol-item p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.after-note { margin-top: 2.5rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; font-weight: 300; max-width: 70ch; }
.after-note strong { color: var(--ink); font-weight: 500; }

/* two-col with feature grid (how we get the information) */
.ops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; align-items: start; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat div { background: #fff; padding: 1.7rem 1.6rem; }
.feat svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 0.9rem; }
.feat h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.feat p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.ops-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-top: 1.2rem; font-weight: 300; }
.ops-copy p strong { color: var(--ink); font-weight: 500; }

/* tile grid with hairline gaps (what's in each issue) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; }
.tile { background: #fff; padding: 2.2rem 2rem 2rem; display: flex; flex-direction: column; transition: background .15s; }
.tile:hover { background: var(--blue-tint); }
.tile .ico { width: 40px; height: 40px; color: var(--blue); margin-bottom: 1.4rem; }
.tile .ico svg { width: 40px; height: 40px; }
.tile .tag { margin-bottom: 1rem; }
.tile h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.25; margin-bottom: 0.7rem; }
.tile p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; max-width: 56ch; }

/* dark band (the rules we hold to) */
.research { background: var(--blue-deep); color: #fff; }
.research h2 { color: #fff; }
.research .sec-blurb { color: #c9d8f5; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.principle { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 1.4rem; }
.principle h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; }
.principle p { font-size: 0.92rem; color: #c9d8f5; line-height: 1.6; }

/* coverage */
.company { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 5rem; align-items: start; }
.company > div > p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-top: 1.2rem; font-weight: 300; }
.company > div > p strong { color: var(--ink); font-weight: 500; }
.values { display: flex; flex-direction: column; }
.value { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.value h3 { font-size: 0.95rem; font-weight: 500; }
.value p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* sample request */
.cta { background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: start; }
.cta .sub { color: var(--muted); margin-top: 0.8rem; font-weight: 300; font-size: 1.05rem; line-height: 1.65; max-width: 520px; }
.cta .fine { color: var(--muted-2); font-size: 0.85rem; margin-top: 1.4rem; max-width: 520px; line-height: 1.5; }
.form { background: #fff; border: 1px solid var(--line); padding: 2rem; display: grid; gap: 1.1rem; box-shadow: 0 14px 34px -20px rgba(0,0,0,0.25); }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem; font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 0;
}
.field input:hover, .field select:hover { border-color: var(--muted-2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a2191f; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-size: 0.92rem; color: var(--muted); }
.form-status.ok { color: var(--teal); font-weight: 500; }
.form-status.err { color: #a2191f; font-weight: 500; }

/* footer */
footer { border-top: 1px solid var(--line); background: #fff; padding: 4rem 0 2rem; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.foot h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink); }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot li a { color: var(--muted); font-size: 0.9rem; }
.foot li a:hover { color: var(--blue); }
.foot .about { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 300px; margin-top: 1rem; }
.legal { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted-2); }
.legal p { max-width: 720px; line-height: 1.5; }

/* simple message pages (/thanks/, 404, form errors) */
.message { min-height: 70vh; display: grid; align-content: center; justify-items: start; padding: 5rem 2.5rem; }
.message p { margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; font-weight: 300; max-width: 36em; line-height: 1.6; }
.message .btn { margin-top: 2rem; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem; }
  .float-chip { left: 12px; bottom: -18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .stat:nth-child(even) { padding-left: 1.5rem; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .sec-head, .ops, .company, .cta-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-in { gap: 2.5rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .sol { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .principles { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 1.25rem; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem; }
  .links.open { display: flex; }
  .links li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .nav-right .btn { display: none; }
  section { padding: 4rem 0; }
  .hero { padding: 0; }
  .hero-grid { padding-block: 3rem 4rem; }
  .tiles, .sol, .feat { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .rows .meta { grid-column: 1; }
  .value { grid-template-columns: 1fr; gap: 0.4rem; }
  .form { padding: 1.4rem; }
  .foot { grid-template-columns: 1fr; gap: 1.8rem; }
  .message { padding: 4rem 1.25rem; }
}
