/* ==========================================================================
   Context66 - Accelerator Portfolio
   Brand system. Navy + orange, connected-node motif.
   ========================================================================== */

:root {
  --navy:        #071C37;
  --navy-deep:   #071C37;
  --navy-ink:    #071C37;
  --orange:      #C76633;
  --orange-br:   #C76633;
  --orange-dark: #A9541F;
  --blue:        #2F6FB0;
  --blue-soft:   #6FA3D6;
  --ink:         #1B2733;
  --slate:       #5A6472;
  --slate-soft:  #8A94A3;
  --hair:        #E3E9F0;
  --canvas:      #F5F7FA;
  --card:        #FFFFFF;
  --shadow:      0 1px 2px rgba(7,28,55,.05), 0 8px 24px rgba(7,28,55,.06);
  --shadow-lift: 0 6px 14px rgba(7,28,55,.10), 0 22px 48px rgba(7,28,55,.14);
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 14px;
  --green:       #1F9A5A;
  --green-deep:  #0E7A44;
  --green-tint:  #E7F6EE;
  --amber:       #D9971F;
  --amber-deep:  #B67811;
  --amber-tint:  #FCF1DF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* ---- eyebrow / mono utility ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

/* ==========================================================================
   Top nav
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { display: block; }
.brand .word { font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: #fff; }
.brand .word b { color: var(--orange); font-weight: 800; }
/* Real Context66 wordmark image, replacing the old separate circle-icon +
   text treatment above (kept, unused, in case any stray markup still
   references it). White+orange transparent PNG for the dark navy
   topbar/footer; a navy+orange variant (brand-logo--dark) exists for the
   rare light-background instance (the login card). */
.brand-logo { display: block; height: 30px; width: auto; }
.brand-logo--footer { height: 26px; }
.brand-logo--dark { height: 28px; }
.navlinks { margin-left: auto; display: flex; gap: 26px; }
.navlinks a {
  font-size: 14px; color: #C4CEDA; font-weight: 500;
  padding: 6px 2px; transition: color .15s ease;
}
.navlinks a:hover { color: #fff; }
.navlinks a.cta {
  color: #fff; background: var(--orange);
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.navlinks a.cta:hover { background: var(--orange-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% -10%, #123056 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: #fff;
  padding: 74px 0 86px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-constellation {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; opacity: .5;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04; letter-spacing: -.02em; font-weight: 800;
  margin: 16px 0 0; max-width: 16ch;
}
.hero h1 .accent { color: var(--orange-br); }
.hero p.lede {
  margin: 20px 0 0; max-width: 60ch;
  font-size: 18px; color: #C7D2E0; line-height: 1.6;
}
.count-strip {
  display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap;
}
.count-strip .stat .n {
  font-size: 40px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1; color: #fff;
}
.count-strip .stat .n em { color: var(--orange-br); font-style: normal; }
.count-strip .stat .l {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate-soft); margin-top: 8px;
}
.count-strip .divider { width: 1px; background: rgba(255,255,255,.12); }

/* ==========================================================================
   Section heading
   ========================================================================== */
.section { padding: 62px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 {
  font-size: 26px; letter-spacing: -.01em; font-weight: 700;
  color: var(--navy); margin: 8px 0 0;
}
.section-head p { margin: 0; color: var(--slate); max-width: 52ch; font-size: 15px; }

/* ==========================================================================
   Tile grid
   ========================================================================== */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--r); padding: 24px 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden; min-height: 232px;
}
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--orange);
  transform: scaleY(0); transform-origin: top; transition: transform .2s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #D3DEEA;
}
.tile:hover::before { transform: scaleY(1); }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.tile .ic {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: #FBEDE3; color: var(--orange);
  margin-bottom: 16px; flex: none;
}
.tile:hover .ic { background: var(--orange); color: #fff; }
.tile .ic svg { width: 24px; height: 24px; }

.tile .num {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--slate-soft);
  letter-spacing: .05em;
}
.tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; line-height: 1.25; }
.tile p.desc { margin: 0; font-size: 13.5px; color: var(--slate); line-height: 1.5; flex: 1; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--blue); background: #EAF1F8;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tile .merged {
  font-family: var(--mono); font-size: 11px; color: var(--slate-soft);
  border-top: 1px solid var(--hair); padding-top: 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tile .go { color: var(--orange); font-weight: 700; transition: transform .18s ease; }
.tile:hover .go { transform: translateX(3px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-deep); color: #9FB0C4;
  padding: 40px 0; margin-top: 30px;
  font-size: 13px;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer .brand .word { font-size: 17px; }

/* ==========================================================================
   Stub / placeholder page
   ========================================================================== */
.stub-hero {
  background: radial-gradient(120% 140% at 85% -10%, #123056 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: 60px 0;
}
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.crumb a { color: var(--blue-soft); }
.crumb a:hover { color: #fff; }
.stub-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 0; }
.stub-hero .ic {
  width: 56px; height: 56px; border-radius: 13px; background: var(--orange);
  display: grid; place-items: center; color: #fff; margin-bottom: 6px;
}
.stub-hero .ic svg { width: 30px; height: 30px; }
.stub-body { padding: 54px 0 70px; }
.placeholder-card {
  background: var(--card); border: 1px dashed #C6D2DF; border-radius: var(--r);
  padding: 34px 32px; box-shadow: var(--shadow); max-width: 760px;
}
.placeholder-card .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); background: #FBEDE3;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.placeholder-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 22px; }
.placeholder-card p { color: var(--slate); margin: 0 0 14px; font-size: 15px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.meta-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-soft); }
.meta-row .v { color: var(--navy); font-weight: 600; font-size: 14px; margin-top: 4px; }
.backlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  color: var(--blue); font-weight: 600; font-size: 14px;
}
.backlink:hover { color: var(--orange); }
.filehint {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: #F3F5F8; border-left: 3px solid var(--blue);
  padding: 12px 14px; border-radius: 6px; margin-top: 6px; word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Customer-facing homepage additions
   ========================================================================== */

/* buttons */
.btnrow { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  padding: 13px 24px; border-radius: 10px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(199,102,51,.32); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,102,51,.40); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #12315a; transform: translateY(-2px); }

/* hero size bump for marketing */
.hero.home { padding: 92px 0 96px; }
.hero.home h1 { font-size: clamp(38px, 6vw, 66px); max-width: 15ch; margin-top: 18px; }
.hero.home p.lede { font-size: 19px; max-width: 58ch; }

/* value strip under hero */
.valuestrip {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.10);
}
.valuestrip span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: #C7D2E0; font-weight: 500;
}
.valuestrip span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-br); flex: none;
}

/* generic band backgrounds */
.band--tint { background: linear-gradient(180deg, #fff 0%, #EEF3F8 100%); }
.band--white { background: #fff; }

/* centered section head */
.head-center { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.head-center h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); letter-spacing: -.02em; font-weight: 800; margin: 10px 0 0; line-height: 1.12; }
.head-center p { color: var(--slate); font-size: 17px; margin: 16px auto 0; max-width: 60ch; }

/* value props */
.valprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .valprops { grid-template-columns: 1fr; } }
.valprop {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.valprop .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--orange-br); margin-bottom: 18px;
}
.valprop .ic svg { width: 26px; height: 26px; }
.valprop h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; font-weight: 700; }
.valprop p { margin: 0; color: var(--slate); font-size: 14.5px; line-height: 1.55; }

/* approach / pillars */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
@media (max-width: 900px) { .approach { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .approach { grid-template-columns: 1fr; } }
.approach-item { background: #fff; padding: 28px 24px; }
.approach-item .n { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .12em; }
.approach-item h3 { margin: 12px 0 8px; font-size: 17px; color: var(--navy); font-weight: 700; line-height: 1.25; }
.approach-item p { margin: 0; color: var(--slate); font-size: 13.5px; line-height: 1.55; }

/* quote / positioning band */
.quote-band { background: radial-gradient(120% 160% at 80% -20%, #123056 0%, var(--navy) 48%, var(--navy-deep) 100%); color: #fff; padding: 78px 0; }
.quote-band .wrap { max-width: 960px; text-align: center; }
.quote-band blockquote { margin: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.28; font-weight: 700; letter-spacing: -.015em; }
.quote-band blockquote .accent { color: var(--orange-br); }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-soft); }

/* CTA band */
.cta-band { background: #fff; padding: 76px 0; }
.cta-inner {
  background: radial-gradient(120% 200% at 90% 0%, #12315a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border-radius: 22px; padding: 56px clamp(28px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lift);
}
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0; max-width: 18ch; line-height: 1.14; }
.cta-inner p { color: #B9C6D6; margin: 12px 0 0; font-size: 16px; max-width: 46ch; }

/* subsection eyebrow line for accelerator groups */
.grouplabel { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; }
.grouplabel h3 { font-size: 18px; color: var(--navy); font-weight: 700; margin: 0; }
.grouplabel .rule { height: 1px; background: var(--hair); flex: 1; }

/* learn-more footer replacing internal "merged" ref on customer tiles */
.tile .learn {
  font-size: 13px; font-weight: 600; color: var(--orange);
  border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.tile:hover .learn .go { transform: translateX(3px); }

/* expanded homepage footer */
.siteftr { background: var(--navy-deep); color: #93A4B8; padding: 56px 0 30px; }
.siteftr .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .siteftr .cols { grid-template-columns: 1fr 1fr; } }
.siteftr h4 { color: #fff; font-size: 13px; letter-spacing: .04em; margin: 0 0 14px; text-transform: uppercase; font-family: var(--mono); }
.siteftr a { display: block; color: #93A4B8; font-size: 14px; padding: 5px 0; }
.siteftr a:hover { color: #fff; }
.siteftr .about { max-width: 34ch; font-size: 14px; line-height: 1.6; color: #93A4B8; margin: 14px 0 0; }
.siteftr .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Accelerator detail pages
   ========================================================================== */
.detail-hero {
  background: radial-gradient(120% 150% at 82% -15%, #123056 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: #fff; padding: 56px 0 60px;
}
.detail-hero .detail-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 18px; }
.detail-hero .ic {
  width: 62px; height: 62px; border-radius: 15px; background: var(--orange);
  display: grid; place-items: center; color: #fff; flex: none;
}
.detail-hero .ic svg { width: 33px; height: 33px; }
.detail-hero h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; line-height: 1.08; }
.detail-hero .sub { margin: 14px 0 0; color: #C7D2E0; font-size: 17px; max-width: 66ch; line-height: 1.55; }
.detail-hero .btnrow { margin-top: 28px; }

/* component tiles reuse .tile; give them a category tag */
.tile .ctag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px; display: inline-block;
}

/* ==========================================================================
   Work-in-progress pages
   ========================================================================== */
.wip-hero {
  background: radial-gradient(120% 150% at 80% -15%, #123056 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: #fff; padding: 66px 0 82px; text-align: center;
}
.wip-hero .crumb { text-align: center; }
.wip-center { max-width: 640px; margin: 26px auto 0; display: flex; flex-direction: column; align-items: center; }
.wip-center .ic {
  width: 64px; height: 64px; border-radius: 16px; background: var(--orange);
  display: grid; place-items: center; color: #fff;
}
.wip-center .ic svg { width: 32px; height: 32px; }
.wip-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #FFD9A6; background: rgba(199,102,51,.16); border: 1px solid rgba(199,102,51,.42);
  padding: 6px 15px; border-radius: 999px;
}
.wip-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-br); animation: wippulse 1.6s ease-in-out infinite; }
@keyframes wippulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.wip-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 20px 0 0; line-height: 1.1; }
.wip-hero .partof { margin: 12px 0 0; font-size: 13px; color: var(--slate-soft); font-family: var(--mono); letter-spacing: .04em; }
.wip-hero .sub { color: #C7D2E0; font-size: 17px; margin: 16px 0 0; line-height: 1.55; max-width: 60ch; }
.wip-hero .btnrow { justify-content: center; margin-top: 30px; }
.wip-progress { width: 220px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); margin: 32px auto 0; overflow: hidden; }
.wip-progress i { display: block; height: 100%; width: 42%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-br)); animation: wipslide 1.9s ease-in-out infinite; }
@keyframes wipslide { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }

/* ==========================================================================
   Feature detail modal (click-to-expand tiles)
   ========================================================================== */
button.tile { font-family: inherit; text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none; width: 100%; }

.feat-modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8,26,49,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.feat-modal[hidden] { display: none; }
.feat-panel {
  background: var(--card); border-radius: var(--r);
  max-width: 760px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow-lift);
  padding: 36px 40px 40px;
  animation: featIn .18s ease;
}
@keyframes featIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.feat-close {
  border: 1px solid var(--hair); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  margin-bottom: 22px;
}
.feat-close:hover { border-color: var(--orange); color: var(--orange); }
.feat-ctag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.feat-panel h3 { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; margin: 8px 0 18px; }
.feat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-soft); margin: 20px 0 6px; }
.feat-label:first-of-type { margin-top: 0; }
.feat-panel p.feat-body { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.feat-badges { margin: 2px 0 4px; }
.feat-proof {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  color: var(--orange); background: #FBEDE3; border-radius: 999px; padding: 4px 12px; margin-right: 8px;
}
.feat-caveat {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--slate); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 12px;
}
.feat-panel pre {
  background: var(--navy-deep); color: #D7E2EE; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.65; padding: 16px 18px; border-radius: 10px; overflow-x: auto; margin: 0;
  white-space: pre-wrap; word-break: break-word;
}
.feat-file { font-family: var(--mono); font-size: 11px; color: var(--slate-soft); margin-top: 6px; }

/* ==========================================================================
   Layer-grouped architecture tiles (compact variant + status pill)
   ========================================================================== */
.layer-block { margin-bottom: 56px; }
.layer-block .layer-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.layer-block .layer-head .n { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 700; }
.layer-block .layer-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.layer-block .layer-head p { margin: 0; font-size: 13px; color: var(--slate); }
.layer-block .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1040px) { .layer-block .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .layer-block .grid { grid-template-columns: 1fr; } }

.tile.compact { min-height: 172px; padding: 18px 18px 16px; }
.tile.compact .ic { width: 36px; height: 36px; border-radius: 9px; margin-bottom: 12px; }
.tile.compact .ic svg { width: 18px; height: 18px; }
.tile.compact h3 { font-size: 14.5px; margin-bottom: 6px; }
.tile.compact p.desc { font-size: 12.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
.status-pill.done { background: var(--green-tint); color: var(--green-deep); }
.status-pill.wip { background: var(--amber-tint); color: var(--amber-deep); }
.status-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.arch-summary { display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline; margin: 6px 0 44px; padding: 18px 22px; background: var(--canvas); border-radius: var(--r); border: 1px solid var(--hair); }
.arch-summary .stat { display: flex; align-items: baseline; gap: 8px; }
.arch-summary .stat b { font-family: var(--mono); font-size: 22px; }
.arch-summary .stat.done b { color: var(--green-deep); }
.arch-summary .stat.wip b { color: var(--amber-deep); }
.arch-summary .stat span { font-size: 12.5px; color: var(--slate); }

/* ==========================================================================
   Reference architecture page — status chips, layer panels, rails
   ========================================================================== */
.arch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.arch-stat { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.arch-stat .num { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.arch-stat.done .num { color: var(--green-deep); }
.arch-stat.wip .num { color: var(--amber-deep); }
.arch-stat.total .num { color: var(--navy); }
.arch-stat .lbl { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

.arch-legend { display: flex; gap: 20px; align-items: center; font-size: 12.5px; color: var(--slate); margin-bottom: 8px; }
.arch-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.arch-rails { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
@media (max-width: 760px) { .arch-rails { grid-template-columns: 1fr; } }
.arch-rail { background: var(--navy); border-radius: var(--r); padding: 20px 22px; }
.arch-rail .rail-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-br); margin-bottom: 4px; }
.arch-rail .rail-sub { font-size: 11.5px; color: #9FB0C4; margin-bottom: 14px; }
.arch-rail .chipwrap { display: flex; flex-wrap: wrap; gap: 7px; }

.arch-flow-label { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-soft); margin: 30px 0 16px; }

.arch-layer { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 14px; }
.arch-layer .layer-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.arch-layer .layer-num { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 700; }
.arch-layer h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.arch-layer .layer-desc { font-size: 12.5px; color: var(--slate); margin: 4px 0 14px; }
.arch-layer .chipwrap { display: flex; flex-wrap: wrap; gap: 7px; }

.arch-connector { display: flex; justify-content: center; margin: -4px 0; }
.arch-connector svg { color: var(--slate-soft); }

.chip { border: none; border-left: 3px solid; border-radius: 0 6px 6px 0; padding: 7px 11px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: transform .12s ease; }
.chip:hover { transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip.done { background: var(--green-tint); color: var(--green-deep); border-left-color: var(--green); }
.chip.wip { background: var(--amber-tint); color: var(--amber-deep); border-left-color: var(--amber); }
.arch-rail .chip.done, .arch-rail .chip.wip { background: rgba(255,255,255,.08); }
.arch-rail .chip.done { color: #7CDDA8; border-left-color: var(--green); }
.arch-rail .chip.wip { color: #F5C877; border-left-color: var(--amber); }

.term-modal { position: fixed; inset: 0; z-index: 60; background: rgba(8,26,49,.72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.term-modal[hidden] { display: none; }
.term-panel { background: var(--card); border-radius: var(--r); max-width: 560px; width: 100%; box-shadow: var(--shadow-lift); padding: 30px 34px 34px; animation: featIn .18s ease; }
.term-close { border: 1px solid var(--hair); background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; margin-bottom: 18px; }
.term-close:hover { border-color: var(--orange); color: var(--orange); }
.term-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.term-panel h3 { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; margin: 6px 0 12px; }
.term-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.term-status.done { background: var(--green-tint); color: var(--green-deep); }
.term-status.wip { background: var(--amber-tint); color: var(--amber-deep); }
.term-panel p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }

.accordion { display: flex; flex-direction: column; gap: 12px; }
.accord-item { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.accord-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; }
.accord-head .accord-n { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 700; flex: 0 0 auto; width: 22px; }
.accord-head .accord-titles { flex: 1 1 auto; min-width: 0; }
.accord-head h3 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.accord-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--slate); }
.accord-count { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--slate); white-space: nowrap; }
.accord-count .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.accord-count .dot.wip { background: var(--amber); }
.accord-chev { flex: 0 0 auto; color: var(--slate-soft); transition: transform .18s ease; }
.accord-item.open .accord-chev { transform: rotate(180deg); }
.accord-item.open .accord-head { border-bottom: 1px solid var(--hair); }
.accord-body { padding: 20px 22px 24px; }
.accord-body[hidden] { display: none; }
.accord-body .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1040px) { .accord-body .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .accord-body .grid { grid-template-columns: 1fr; } }
.term-panel .feat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-soft); margin: 16px 0 6px; }
.term-panel .feat-label:first-of-type { margin-top: 18px; }

/* Live agent embed (Context66 KnowledgeAgent page) — frames the real,
   running chatbot app in an iframe. Fixed height rather than aspect-ratio
   since the embedded app is an interactive tool, not a media element. */
.agent-embed { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--hair); background: #0f0f0f; }
.agent-embed iframe { width: 100%; height: 720px; border: none; display: block; }
@media (max-width: 760px) { .agent-embed iframe { height: 560px; } }

/* Live-demo page: the agent fills the page instead of sitting in a small
   boxed/bordered/shadowed dark widget — no border-radius, no shadow, no
   border, no dark background, so it reads as part of the page rather than
   an obviously-embedded iframe. Scoped to this page only (detail-hero--agent
   / agent-embed-full), the shared .detail-hero / .agent-embed classes used
   by other accelerator pages are untouched. */
.detail-hero--agent { padding: 34px 0 26px; }
.detail-hero--agent h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; line-height: 1.15; }
.agent-embed-full { width: 100%; height: 84vh; min-height: 540px; background: #fff; }
.agent-embed-full iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 760px) { .agent-embed-full { height: 78vh; min-height: 460px; } }


/* Oct 6 (Pal): Log out sits next to Book a demo; the "Ready to engineer your
   context?" band only stays on the home page (it is the contact section there). */
.navlinks a.logout {
  color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 7px 15px; border-radius: 8px; font-weight: 600;
}
.navlinks a.logout:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }
body:not(.is-home) .cta-band { display: none; }

/* Oct 30: one Account menu in place of separate "Change password" and
   "Log out" links, so the top bar stays as short as it was. A <details>
   element, so it opens and closes with no script on any page. */
.account-menu { position: relative; align-self: center; }
.account-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 14px;
  transition: background .15s ease, border-color .15s ease;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.account-menu[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.account-menu summary:hover,
.account-menu[open] summary { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }
.account-menu summary:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.account-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; z-index: 60;
  background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: var(--shadow-lift); border: 1px solid var(--hair);
}
.navlinks .account-menu__list a {
  display: block; padding: 9px 12px; border-radius: 7px;
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.navlinks .account-menu__list a:hover { background: #F1F4F8; color: var(--navy); }
.navlinks .account-menu__list a.signout { color: #B3261E; }
