/* =====================================================================================================================
   CarbonPlus CPOS — public marketing site (premium redesign, 0.18.2).
   Design language aligned to the CarbonPlus family: deep-forest foundation, restrained CarbonPlus-green accent, warm
   cream surfaces, enterprise typographic rhythm, one systematic button + card + spacing scale. No external fonts or
   CDNs (strict CSP default-src 'self'); system font stack + a monospace accent. No inline styles/scripts anywhere.
   ===================================================================================================================== */
:root {
  /* forest foundation */
  --f-950: #05130D;
  --f-900: #071912;
  --f-850: #0A1E16;
  --f-800: #0C2019;
  --f-700: #11291F;
  --f-600: #17392B;
  --f-line: #1F4030;
  --f-line-2: #2A5140;
  /* greens */
  --g-700: #12652F;
  --g-600: #15803D;
  --g-500: #22C55E;
  --g-400: #4ADE80;
  --g-300: #86EFAC;
  /* light surfaces */
  --paper: #F7FAF7;
  --paper-2: #EFF4F0;
  --paper-3: #E7EFE9;
  --card: #FFFFFF;
  --ink: #0F1E17;
  --ink-2: #33473D;
  --ink-muted: #5B6E64;
  --line: #E1EAE4;
  --line-2: #CBD9D0;
  /* on-dark text */
  --on-dark: #DCEAE2;
  --on-dark-2: #A9C6B7;
  --on-dark-muted: #7F9E8D;
  /* system */
  --shadow-xs: 0 1px 2px rgba(5,19,13,.06);
  --shadow-sm: 0 1px 3px rgba(5,19,13,.07), 0 1px 2px rgba(5,19,13,.05);
  --shadow-md: 0 10px 30px -12px rgba(5,19,13,.22);
  --shadow-lg: 0 24px 60px -20px rgba(5,19,13,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.62; font-size: 16.5px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--g-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--g-500); }
::selection { background: rgba(34,197,94,.22); }
img, svg { max-width: 100%; display: block; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--f-800); color: var(--on-dark); }
.section--paper2 { background: var(--paper-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0 0 .5rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 720; }
h3 { font-size: 1.14rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  font-weight: 600; color: var(--g-600); margin: 0 0 .85rem; display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--g-500); display: inline-block; }
.section--dark .eyebrow { color: var(--g-400); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.lead { font-size: 1.14rem; color: var(--ink-muted); max-width: 42rem; margin: 0; }
.section--dark .lead { color: var(--on-dark-2); }
.sec-head { max-width: 46rem; margin: 0 0 2.6rem; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- ONE button system (all CTAs share height / padding / radius / weight / hover) ---------- */
.btn {
  --btn-py: .78rem; --btn-px: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 640; font-size: .95rem; line-height: 1.1; letter-spacing: .005em;
  padding: var(--btn-py) var(--btn-px); border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease), transform .05s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(34,197,94,.5); outline-offset: 2px; }
.btn .arw { transition: transform .16s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn-lg { --btn-py: .95rem; --btn-px: 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--g-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--g-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); border-color: var(--g-500); }
/* on dark surfaces */
.on-dark .btn-secondary, .section--dark .btn-secondary, .hero .btn-secondary, .cta-band .btn-secondary { color: var(--on-dark); border-color: var(--f-line-2); }
.on-dark .btn-secondary:hover, .section--dark .btn-secondary:hover, .hero .btn-secondary:hover, .cta-band .btn-secondary:hover { background: var(--f-600); color: #fff; border-color: var(--g-500); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row--center { justify-content: center; }
.textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 620; font-size: .92rem; }
.textlink .arw { transition: transform .16s var(--ease); }
.textlink:hover .arw { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(9,30,22,.86);
  backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--f-line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.brand .mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--g-500), var(--g-700)); color: #fff; font-weight: 800; font-size: .82rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.brand b { color: var(--g-400); font-weight: 700; }
.site-nav { display: flex; gap: 1.5rem; margin-left: .75rem; }
.site-nav a { color: var(--on-dark-2); font-size: .92rem; font-weight: 520; }
.site-nav a:hover { color: #fff; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header-cta .btn { --btn-py: .58rem; --btn-px: 1.05rem; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; border-bottom: 1px solid var(--f-line);
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(34,197,94,.20), transparent 60%),
    radial-gradient(1100px 620px at 12% 8%, #0f3626 0%, transparent 55%),
    linear-gradient(180deg, var(--f-850) 0%, var(--f-900) 60%, var(--f-950) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; padding: 92px 24px 84px; }
.hero .eyebrow { color: var(--g-400); }
.hero .eyebrow::before { background: var(--g-400); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.55rem); font-weight: 760; letter-spacing: -.03em; max-width: 17ch; }
.hero .sub { color: var(--on-dark-2); font-size: 1.2rem; max-width: 42rem; margin: 1.2rem 0 2rem; }
.hero .btn-row { margin-bottom: 2.6rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--on-dark-2); background: rgba(255,255,255,.04); border: 1px solid var(--f-line-2); border-radius: var(--radius-pill); padding: .35rem .8rem; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-400); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-xs); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--ink-muted); font-size: .93rem; line-height: 1.55; }
.ico { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--g-600); margin-bottom: 14px; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.section--dark .card { background: var(--f-700); border-color: var(--f-line); box-shadow: none; }
.section--dark .card:hover { border-color: var(--f-line-2); box-shadow: var(--shadow-lg); }
.section--dark .card p { color: var(--on-dark-2); }
.section--dark .ico { background: var(--f-600); border-color: var(--f-line-2); color: var(--g-400); }
/* compact "module" chips grid */
.pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pill { display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; font-size: .92rem; color: var(--ink);
  box-shadow: var(--shadow-xs); transition: border-color .16s var(--ease), transform .12s var(--ease); }
.pill:hover { border-color: var(--g-500); transform: translateY(-2px); }
.pill .tick { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line-2);
  color: var(--g-600); display: inline-flex; align-items: center; justify-content: center; }
.pill .tick svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* ---------- lifecycle flow ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.flow .step { flex: 1 1 148px; min-width: 132px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 16px 15px; box-shadow: var(--shadow-xs); position: relative; }
.flow .step .n { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--g-600); letter-spacing: .04em; display: block; margin-bottom: 6px; }
.flow .step .t { font-weight: 620; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.section--dark .flow .step { background: var(--f-700); border-color: var(--f-line); }
.section--dark .flow .step .t { color: #fff; }
.section--dark .flow .step .n { color: var(--g-400); }

/* ---------- credit buckets ---------- */
.buckets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.bucket { background: var(--f-700); border: 1px solid var(--f-line); border-radius: var(--radius-sm); padding: 16px 18px; }
.bucket .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g-400); }
.bucket .v { font-weight: 680; color: #fff; font-size: 1.05rem; margin-top: 2px; }

/* ---------- split feature (governance) ---------- */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--on-dark); }
.check-list .tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; background: var(--f-600); border: 1px solid var(--f-line-2);
  color: var(--g-400); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-list .tick svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.panel { background: linear-gradient(160deg, var(--f-700), var(--f-850)); border: 1px solid var(--f-line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg); }
.panel .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 13px 0; border-bottom: 1px dashed var(--f-line-2); }
.panel .row:last-child { border-bottom: 0; }
.panel .row .k { color: var(--on-dark-2); font-size: .9rem; }
.panel .row .v { font-family: var(--mono); font-size: .82rem; color: var(--g-300); }

/* ---------- standards ---------- */
.std { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.std .card { border-top: 3px solid var(--g-500); }
.tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--g-600); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .18rem .6rem; margin-bottom: .7rem; }

/* ---------- note / disclaimer ---------- */
.note { border-left: 3px solid var(--g-500); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; color: var(--ink-muted); font-size: .92rem; margin-top: 22px; }
.section--dark .note { background: rgba(255,255,255,.03); color: var(--on-dark-2); border-left-color: var(--g-500); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); text-align: center; color: #fff;
  padding: 56px 32px; box-shadow: var(--shadow-lg);
  background: radial-gradient(700px 300px at 50% -30%, rgba(34,197,94,.22), transparent 60%), linear-gradient(150deg, var(--f-700), var(--f-900)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-2); max-width: 40rem; margin: .4rem auto 1.7rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--f-950); color: var(--on-dark-muted); padding: 56px 0 28px; border-top: 1px solid var(--f-line); }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.site-footer a { color: var(--on-dark-muted); display: block; font-size: .9rem; padding: .2rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: .7rem; }
.foot-note { color: var(--on-dark-muted); max-width: 34rem; font-size: .88rem; line-height: 1.6; }
.site-footer .fine { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--f-line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .std { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pill-grid { grid-template-columns: 1fr 1fr; }
  .buckets { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .hero .wrap { padding: 64px 24px 56px; }
  .hero .sub { font-size: 1.06rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-cta .btn { width: auto; }
  /* keep only the primary Launch Platform CTA in the header on small screens (the secondary demo CTA also
     lives in the hero + closing CTA band), so the header stays clean and the primary action is always visible. */
  .header-cta .btn-secondary { display: none; }
  .site-header .wrap { gap: .75rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 20px; }
}
