/* NicheCommand marketing site - House v2 Colophon register. */

.reg-colophon {
  --child-accent: #0E5A73; /* Sonar - registry N°015 */
  --child-accent-contrast: #FFFFFF;
}

* { box-sizing: border-box; }
html { background: #FBF8EF; /* colophon newsprint - html is outside .reg-colophon scope */ color-scheme: light; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.reg-colophon { margin: 0; line-height: 1.5; overflow-x: hidden; }
a { color: var(--child-accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--child-accent); color: var(--child-accent-contrast); }

.shell { max-width: var(--shell-max); margin-inline: auto; padding-inline: 40px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase;
}
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--child-accent); outline-offset: 3px; }

.site-masthead { padding-top: 16px; background: var(--paper); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; padding-block: 8px 14px;
}
.wordmark {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  line-height: 1; color: var(--ink);
}
.wordmark:hover { color: var(--child-accent); }
.nav { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-left: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--child-accent); }
.masthead-rule { padding-bottom: 16px; }

.ticker {
  border-block: 1px solid var(--line); background: var(--card);
  color: var(--muted); overflow: hidden;
}
.ticker .track {
  display: flex; flex-wrap: wrap; gap: 0 22px; padding-block: 10px;
}
.ticker span { display: inline-flex; align-items: center; min-height: 24px; }
.ticker .dot { color: var(--child-accent); padding-left: 22px; }

.kicker, .eyebrow { display: inline-block; color: var(--child-accent); margin-bottom: 16px; }
.meta-line {
  margin-top: 24px;
  font-family: var(--font-data); font-size: 12px; letter-spacing: .04em;
  color: var(--agate);
}
.mono { font-family: var(--font-data); font-size: .9em; color: var(--muted); }

.hero { border-bottom: 1px solid var(--line); }
.hero .shell { padding-block: 56px 36px; }
.hero-head { max-width: 980px; }
.hero-title {
  margin: 0; max-width: 21ch;
  font-family: var(--font-display); font-size: 56px; font-weight: 700;
  line-height: 1.02; letter-spacing: 0; color: var(--ink);
}
.hero-title .hl { color: var(--child-accent); }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 40px; padding-top: 30px; align-items: start;
}
.hero-sub {
  margin: 0; max-width: var(--measure-max);
  font-family: var(--font-display); font-size: 20px; line-height: 1.58;
  color: var(--muted);
}
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 12px 18px;
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.btn-primary { background: var(--child-accent); border-color: var(--child-accent); color: var(--child-accent-contrast); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.stat-panel { margin-top: 34px; padding-top: 14px; }
.stat-title { display: block; color: var(--agate); margin-bottom: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-item { padding: 18px 18px 16px 0; border-right: 1px solid var(--line); }
.stat-item + .stat-item { padding-left: 18px; }
.stat-item:last-child { border-right: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  line-height: 1; color: var(--ink);
}
.stat-label { display: block; color: var(--muted); margin-top: 9px; }

.sec-head {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px;
  align-items: baseline; padding-block: 54px 10px;
  border-top: 1px solid var(--line);
}
.sec-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  line-height: 1; color: var(--child-accent);
}
.sec-head h2, .sec-head h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
  color: var(--ink);
}
.sec-head h2, .subhead { font-size: 34px; }
.sec-head h3 { font-size: 26px; }
.subhead {
  margin: 46px 0 14px;
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr));
  gap: 16px; padding-block: 24px 56px;
}
.card-grid.pipeline { grid-template-columns: repeat(5, 1fr); }
.card {
  display: flex; flex-direction: column; min-height: 170px;
  background: var(--card); border: 1px solid var(--line); border-radius: 0;
  padding: 18px 20px 20px;
}
.card--flagged { border-color: var(--child-accent); }
.card .num {
  display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  line-height: 1; color: var(--child-accent);
}
.card .tag { align-self: flex-start; color: var(--child-accent); margin: 2px 0 10px; }
.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  line-height: 1.2; color: var(--ink);
}
.card p { margin: 0; color: var(--muted); font-family: var(--font-ui); font-size: 14px; line-height: 1.55; }
.card p:last-child { margin-top: auto; }

.tiers { margin-bottom: 56px; border-top: 2px solid var(--ink); }
.tier-row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px;
  align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.tier-row .big {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  line-height: 1; color: var(--ink);
}
.tier-row.flag .big { color: var(--child-accent); }
.tier-row .tt { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.tier-row .td { color: var(--muted); text-align: right; }

.mono-block {
  margin: 14px 0 20px; padding: 16px 18px;
  overflow-x: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 0; color: var(--ink);
  font-family: var(--font-data); font-size: 13px; line-height: 1.7;
}
.mono-block .hl, .mono-block .cmd { color: var(--child-accent); font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
  vertical-align: baseline;
}
.chip.is-available { background: var(--child-accent); border-color: var(--child-accent); color: var(--child-accent-contrast); }
.chip.is-registered { color: var(--muted); border-color: var(--line-mid); }

.page-main { padding-block: 54px 18px; }
.prose { max-width: var(--measure-max); }
.prose h1 {
  margin: 0 0 18px;
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  line-height: 1.12; letter-spacing: 0; color: var(--ink);
}
.prose h2 {
  margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  line-height: 1.2; color: var(--ink);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li {
  margin: 0 0 14px;
  font-family: var(--font-display); font-size: 18px; line-height: 1.65;
  color: var(--ink); overflow-wrap: anywhere;
}
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose a { color: var(--child-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }

.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 56px; }
.cmp {
  width: 100%; min-width: 760px; border-collapse: collapse;
  font-family: var(--font-ui); font-size: 14px; font-variant-numeric: tabular-nums;
}
.cmp th, .cmp td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.cmp thead th { color: var(--muted); border-bottom: 2px solid var(--ink); background: var(--card); }
.cmp tbody th { font-weight: 500; color: var(--ink); }

.site-footer { margin-top: 64px; padding: 28px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 24px; align-items: start;
}
.footer-lockup { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 20px; }
.hallmark { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.hallmark-box { width: 44px; height: 44px; border: 3px solid var(--ink); display: flex; padding: 2px; }
.hallmark-inner {
  flex: 1; border: 1.5px solid #C8102E; /* press red - group hallmark device only, registry N°000 */
  display: flex; align-items: center; justify-content: center;
}
.hallmark-sm { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1; color: var(--ink); }
.hallmark-no { font-size: 10px; color: var(--muted); }
.reg-line { font-family: var(--font-data); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.reg-line .code { color: var(--child-accent); }
.attribution { min-height: 44px; }
.attribution::before { background: var(--child-accent); }
.attribution:hover, .attribution:hover b, .attribution:hover strong { color: var(--child-accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; justify-content: flex-end; }
.footer-links a {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--font-ui); font-size: 13px; color: var(--muted);
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--child-accent); }

@media (max-width: 1024px) {
  .hero-title { font-size: 46px; }
  .hero-body { grid-template-columns: 1fr; gap: 26px; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .card-grid.pipeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { padding-inline: 16px; }
  .site-masthead { padding-top: 10px; }
  .masthead-inner { align-items: flex-start; }
  .wordmark { width: 100%; font-size: 30px; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { flex: 1 1 auto; justify-content: center; padding: 0 10px; border-left: 0; border-right: 1px solid var(--line); }
  .nav a:last-child { border-right: 0; }
  .hero .shell { padding-block: 40px 28px; }
  .hero-title { font-size: 36px; line-height: 1.08; }
  .hero-sub { font-size: 18px; }
  .hero-cta { flex-direction: column; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-item, .stat-item + .stat-item { padding: 16px 0; border-right: 0; border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: 0; }
  .stat-value { font-size: 36px; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; padding-block: 40px 8px; }
  .sec-num { font-size: 24px; }
  .sec-head h2, .subhead { font-size: 28px; }
  .sec-head h3, .prose h2 { font-size: 23px; }
  .card-grid { gap: 12px; padding-bottom: 42px; }
  .card-grid.pipeline { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 54px minmax(0, 1fr); gap: 10px 14px; }
  .tier-row .td { grid-column: 2; text-align: left; }
  .prose h1 { font-size: 34px; }
  .prose p, .prose li { font-size: 17px; }
  .site-footer { margin-top: 48px; }
}
