/* ==========================================================================
   Enterprise refit — light.
   Loaded last, on purpose.

   This file does not restyle components one by one. It resets the handful of
   decisions that made the site read as a consumer product rather than
   enterprise infrastructure, while keeping the palette light and green:

     1. translucent, blurred header  -> a solid light bar with a real edge
     2. decorative gradients, photo  -> flat surfaces + intentional photography
     3. 6-10px radii, soft shadows   -> 4px radii and real 1px borders
     4. low-contrast grey-on-white   -> AA-compliant ink

   The discipline is borrowed from enterprise consoles. The palette is
   EcoKure's own: light ground, green accent, nature photography.
   ========================================================================== */

:root {
  --ek-ink: #16241f;
  --ek-ink-2: #3d4f49;
  --ek-ink-3: #61736c;
  --ek-border: #d7e0da;
  --ek-border-2: #c2cfc7;
  --ek-bg-alt: #f2f6f3;
  --ek-bg-3: #e8efea;
  --ek-accent: #00695e;       /* text-safe green */
  --ek-accent-2: #00857a;     /* fills and rules */
  --ek-radius: 4px;
}

/* Remap the enterprise scale rather than introducing a competing one. */
.ent {
  --e-ink: var(--ek-ink);
  --e-ink-2: var(--ek-ink-2);
  --e-ink-3: var(--ek-ink-3);
  --e-line: var(--ek-border);
  --e-line-2: var(--ek-border-2);
  --e-bg-2: var(--ek-bg-alt);
  --e-bg-3: var(--ek-bg-3);
  --e-accent: var(--ek-accent);
}

/* ---------- 1. application bar ----------------------------------------
   Solid rather than translucent-blurred, with a real bottom edge so the page
   has a defined top instead of bleeding into the hero. */

nav.nav {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--ek-border) !important;
  box-shadow: none !important;
}
nav.nav .nav-logo { color: var(--ek-ink) !important; }
nav.nav > .nav-inner > ul > li > a,
nav.nav .nav-link {
  color: var(--ek-ink-2) !important;
  background: transparent !important;
  border-radius: var(--ek-radius) !important;
}
nav.nav .nav-link:hover {
  background: var(--ek-bg-alt) !important;
  color: var(--ek-ink) !important;
  text-decoration: none !important;
}
/* Active tab reads as a tab, not a grey chip. */
nav.nav .nav-link.active {
  background: transparent !important;
  color: var(--ek-ink) !important;
  box-shadow: none !important;
}
nav.nav .nav-labs-menu,
nav.nav .nav-dropdown {
  background: #fff !important;
  border: 1px solid var(--ek-border) !important;
  border-radius: var(--ek-radius) !important;
  box-shadow: 0 6px 20px rgba(22,36,31,.12) !important;
}
nav.nav .nav-labs-menu a,
nav.nav .nav-dropdown a { color: var(--ek-ink) !important; border-radius: 2px !important; }
nav.nav .nav-labs-menu a:hover,
nav.nav .nav-dropdown a:hover { background: var(--ek-bg-alt) !important; }
nav.nav .labs-menu-name { color: var(--ek-ink) !important; }
nav.nav .labs-menu-meta { color: var(--ek-ink-3) !important; }

/* The account link sits outside .nav-link, so the bar rules do not reach it.
   Styled as the secondary action beside the primary CTA. */
nav.nav .nav-account {
  color: var(--ek-ink-2) !important;
  border: 1px solid var(--ek-border-2) !important;
  border-radius: var(--ek-radius) !important;
  background: transparent !important;
}
nav.nav .nav-account:hover {
  color: var(--ek-ink) !important;
  border-color: var(--ek-accent-2) !important;
  background: var(--ek-bg-alt) !important;
  text-decoration: none !important;
}

/* ---------- 2. flat surfaces ------------------------------------------ */

.ent-sec.alt { background: var(--ek-bg-alt) !important; }

/* ---------- 3. edges, not shadows ------------------------------------- */

.ent .layer-card,
.ent .pack,
.ent .readiness-card,
.ent .opmodel,
.ent .ent-table-wrap,
.ent .ent-note,
.ent .dm-rule,
.ent .dm-steps,
.ent .dm-record {
  border-radius: var(--ek-radius) !important;
  box-shadow: none !important;
  border-color: var(--ek-border) !important;
}
.ent .layer-card:hover {
  border-color: var(--ek-accent-2) !important;
  box-shadow: 0 0 0 1px var(--ek-accent-2) !important;
}
.ent .ent-btn { border-radius: var(--ek-radius) !important; font-weight: 600; }
.ent .ent-btn-primary {
  background: var(--ek-accent) !important;
  border-color: var(--ek-accent) !important;
  color: #fff !important;
}
.ent .ent-btn-ghost {
  background: #fff !important;
  border-color: var(--ek-border-2) !important;
  color: var(--ek-ink) !important;
}
.ent .ent-btn-ghost:hover { background: var(--ek-bg-alt) !important; }

.btt-btn {
  border-radius: var(--ek-radius) !important;
  background: var(--ek-accent) !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid var(--ek-accent) !important;
  box-shadow: none !important;
}

/* ---------- 4. contrast ------------------------------------------------
   Deliberately empty of per-element colour rules.

   An earlier version set `.ent h1..h4`, `.ent p` and `.ent .small` directly.
   That ties on specificity with the dark-section rules those components ship
   with (`.dm-hero h1`, `.ent-cta h2`), and loading later meant it won every
   tie -- turning the /demo hero and the closing CTA into dark text on a dark
   ground. The token remap in `.ent { --e-ink: ... }` above already raises the
   ink everywhere, without outranking a section that inverted itself. */

/* ---------- 5. hero controls ------------------------------------------ */

/* Four buttons of near-equal weight is a menu, not a choice. One primary, one
   secondary, the rest demoted to text. Scoped under .ent because a bare
   .hero-alt would lose to `.ent p`. */
.ent .hero-alt { margin-top: 14px; font-size: .88rem; color: var(--ek-ink-3); }
.ent .hero-alt a { color: var(--ek-accent); text-decoration: underline; text-underline-offset: 3px; }

/* The hero card was a rounded, shadowed panel with a spinning dashed ring. */
.home-loop {
  border-radius: var(--ek-radius) !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.88) !important;
  border-color: var(--ek-border) !important;
}
.home-loop-core {
  background: var(--ek-accent) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.home-loop-core::after { animation: none !important; border-color: rgba(255,255,255,.55) !important; }
.home-loop-node {
  border-radius: var(--ek-radius) !important;
  box-shadow: none !important;
  background: #fff !important;
  border-color: var(--ek-border) !important;
}
@media (prefers-reduced-motion: reduce) { .home-loop-core::after { animation: none !important; } }

/* ---------- 6. pager and footer --------------------------------------- */

/* The pager sat on a photograph with two gradient lozenges. */
.pager-stars { background-image: none !important; background: transparent !important; }
.pager { background: var(--ek-bg-alt) !important; border-top: 1px solid var(--ek-border); }
.pager-top, .pager-next {
  border-radius: var(--ek-radius) !important;
  background-image: none !important;
}
.pager-top { background: #fff !important; border: 1px solid var(--ek-border-2) !important; }
.pager-top, .pager-top * { color: var(--ek-ink) !important; }
.pager-next { background: var(--ek-accent) !important; border: 1px solid var(--ek-accent) !important; }
.pager-next, .pager-next * { color: #fff !important; }

/* The footer stays dark: it is the base of the page, not a content surface.
   Its tagline sat at 35% white on #07101f -- about 3.4:1, under the 4.5:1 AA
   floor for body text. These are contrast fixes, not taste. */
footer .footer-tagline,
footer .social-btn,
footer p, footer small, footer li, footer span { color: rgba(255,255,255,.74) !important; }
footer a { color: rgba(255,255,255,.82) !important; }
footer a:hover { color: #fff !important; }
footer h4, footer .footer-col-title { color: #fff !important; }

/* Pre-existing, found during audit: .mobile-overlay is a white panel but its
   group headings kept rgba(154,245,192,.75), a mint meant for a dark surface
   -- 1.22:1 on white, so those headings were effectively invisible. */
.mobile-overlay .mobile-menu-label { color: var(--ek-accent) !important; opacity: 1 !important; }

/* ---------- account / sign-in surface -------------------------------- */
.account-page { background: var(--ek-bg-alt); }
.account-shell {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  background: radial-gradient(circle at 50% 8%, rgba(0,133,122,.12), transparent 34rem), var(--ek-bg-alt);
}
.account-card {
  width: min(100%, 520px);
  padding: 44px;
  border: 1px solid var(--ek-border);
  border-radius: var(--ek-radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 55px rgba(22,36,31,.08);
}
.account-kicker { color: var(--ek-accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.account-card h1 { margin: 10px 0 12px; color: var(--ek-ink); font: 700 clamp(2rem, 5vw, 3rem)/1.05 var(--font-display); letter-spacing: -.04em; }
.account-intro, .account-note { color: var(--ek-ink-2); line-height: 1.65; }
.account-error { margin: 24px 0; padding: 13px 15px; border: 1px solid #e4c7a7; border-radius: var(--ek-radius); background: #fff8ef; color: #70451e; font-size: .82rem; line-height: 1.5; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.account-primary, .account-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border-radius: var(--ek-radius); font: 600 .82rem var(--font); text-decoration: none; cursor: pointer; }
.account-primary { border: 1px solid var(--ek-accent); background: var(--ek-accent); color: #fff; }
.account-primary:hover { background: var(--ek-accent-2); }
.account-secondary { border: 1px solid var(--ek-border-2); background: #fff; color: var(--ek-ink); }
.account-secondary:hover { border-color: var(--ek-accent-2); background: var(--ek-bg-alt); }
.account-profile { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--ek-border); border-bottom: 1px solid var(--ek-border); }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.account-profile strong, .account-profile span { display: block; }
.account-profile strong { color: var(--ek-ink); font-size: 1.05rem; }
.account-profile span { color: var(--ek-ink-3); font-size: .8rem; margin-top: 3px; }
.account-note { margin-bottom: 22px; font-size: .82rem; }
.account-legal { margin-top: 30px; color: var(--ek-ink-3); font-size: .7rem; text-align: center; }
.account-legal a { color: var(--ek-ink-2); }
@media (max-width: 480px) { .account-card { padding: 32px 24px; } }

/* ---------- 7. hero photography ----------------------------------------
   The hero was flat and empty. A photograph behind a light scrim gives the
   page depth and carries the brand without costing legibility: the text
   column sits under the opaque end of the scrim and the image clears toward
   the right, where there is no text.

   .ent-hero already sets position:relative/overflow:hidden and puts
   .ent-wrap at z-index 1, so both pseudo-elements sit behind the text.
   ::before previously drew a decorative radial blob; it becomes the image
   layer, and ::after is the scrim.

   Images are CC0 / public domain from Wikimedia Commons -- see IMAGES.md.
   They are NOT the older CC-BY-SA placeholder set, which still needs
   replacing before commercial use. */
.ent-hero {
  background-image: none !important;
  background-color: var(--ek-bg-alt) !important;
  border-bottom: 1px solid var(--ek-border) !important;
  /* 64px did not clear the 68px fixed nav, so the eyebrow sat about a
     pixel under it on every one of the 39 pages using this hero. */
  padding: calc(var(--nav-h) + 60px) 0 76px !important;
  --hero-img: url("../images/photos/nat-hills.webp");
}
body[data-page="platform"]     .ent-hero,
body[data-page="architecture"] .ent-hero,
body[data-page="assurance"]    .ent-hero { --hero-img: url("../images/photos/nat-shore.webp"); }
body[data-page="solutions"]    .ent-hero,
body[data-page="industry"]     .ent-hero,
body[data-page="enterprise"]   .ent-hero { --hero-img: url("../images/photos/nat-coast.webp"); }
body[data-page="proof"]        .ent-hero,
body[data-page="evidence"]     .ent-hero,
body[data-page="deployment"]   .ent-hero { --hero-img: url("../images/photos/nat-field.webp"); }
body[data-page="lighthouse"]   .ent-hero { --hero-img: url("../images/photos/nat-water.webp"); }

.ent-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto; height: auto; top: 0; right: 0;   /* undo the old blob box */
  border-radius: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 45%;
  opacity: .55;
  pointer-events: none;
}
.ent-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The right end used to fall to 40% white, so the hero diagram sat on
     visible hillside and read as two different backgrounds joined in the
     middle. The photo now stays a texture the whole way across. */
  background: linear-gradient(100deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.94) 42%,
    rgba(255,255,255,.86) 74%,
    rgba(255,255,255,.80) 100%);
  pointer-events: none;
}

/* ---------- 8. image band ----------------------------------------------
   A full-width photographic band used to break long text pages. Shallow on
   purpose (not a second hero) and always carrying real text, so it reads as
   structure rather than decoration. */
.img-band {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: var(--ek-bg-alt);
  border-top: 1px solid var(--ek-border);
  border-bottom: 1px solid var(--ek-border);
}
.img-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/photos/nat-hills.webp");
  background-size: cover; background-position: center 45%;
  opacity: .6;
}
.img-band[data-img="coast"]::before { background-image: url("../images/photos/nat-coast.webp"); }
.img-band[data-img="shore"]::before { background-image: url("../images/photos/nat-shore.webp"); }
.img-band[data-img="field"]::before { background-image: url("../images/photos/nat-field.webp"); }
.img-band[data-img="water"]::before { background-image: url("../images/photos/nat-water.webp"); }
.img-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.90) 42%,
    rgba(255,255,255,.55) 100%);
}
.img-band > .ent-wrap { position: relative; z-index: 1; }
.img-band .img-band-kicker {
  font: 700 .7rem/1 var(--e-mono, ui-monospace);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ek-accent); margin: 0 0 13px;
}
.img-band h2 { color: var(--ek-ink) !important; max-width: 20ch; margin: 0 0 14px; }
.img-band p:not(.img-band-kicker) {
  color: var(--ek-ink-2) !important; max-width: 60ch; margin: 0; line-height: 1.65;
}
@media (max-width: 700px) {
  .img-band { padding: 52px 0; }
  .img-band::after { background: linear-gradient(95deg, rgba(255,255,255,.95), rgba(255,255,255,.90)); }
}

/* ---------- 9. disclosure and footnotes --------------------------------
   The solution routes were collapsed behind a summary with no preview, so
   the section rendered as an empty bar on a page that is meant to be
   choosing between routes. Opened by default; the control still collapses.
   Restyled to match the 4px system rather than a 14px pill. */
.overview-disclosure {
  border: 1px solid var(--ek-border) !important;
  border-radius: var(--ek-radius) !important;
  background: #fff !important;
  overflow: hidden;
}
.overview-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ek-ink-3) !important;
  background: var(--ek-bg-alt);
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.overview-disclosure[open] > summary { border-bottom-color: var(--ek-border); }
.overview-disclosure > summary:hover { color: var(--ek-ink) !important; }
.overview-disclosure > summary::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS so there is a real open/closed affordance. */
.overview-disclosure > summary::after {
  content: "";
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .18s ease;
}
.overview-disclosure[open] > summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.overview-disclosure > .sol-grid { padding: 20px; }

/* A roadmap caveat is a footnote, not body copy. It was running the full
   width of the column and reading like an error message. */
.ent .roadmap-note {
  margin-top: 18px !important;
  max-width: 62ch;
  padding-left: 13px;
  border-left: 2px solid var(--ek-border-2);
  font-size: .86rem !important;
  line-height: 1.6;
  color: var(--ek-ink-3) !important;
}

/* ---------- 10. industry picker and route cards ------------------------
   "Which of these is me?" is the question this section actually has to
   answer, and five near-identical cards do not answer it. The picker maps a
   company type onto a route.

   It highlights rather than filters: every industry runs the same system, so
   hiding the other four would imply five products, which is the opposite of
   what the section says. */
.route-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  background: var(--ek-bg-alt);
  border: 1px solid var(--ek-border);
  border-radius: var(--ek-radius);
}
.route-picker label {
  font: 700 .72rem var(--e-mono, ui-monospace);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ek-ink-3);
}
.route-picker select {
  flex: 1 1 22rem;
  min-width: 0;
  padding: 9px 12px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ek-ink);
  background: #fff;
  border: 1px solid var(--ek-border-2);
  border-radius: var(--ek-radius);
  cursor: pointer;
}
.route-picker select:focus-visible {
  outline: 2px solid var(--ek-accent-2);
  outline-offset: 1px;
}
.ent .route-picker-out {
  flex: 1 1 100%;
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.55;
  color: var(--ek-ink-3) !important;
}
.ent .route-picker-out.is-answer {
  color: var(--ek-ink) !important;
  font-weight: 600;
}

/* Each route gets its own edge colour so the five cards are distinguishable
   at a glance. All five are dark enough to carry the eyebrow text on white. */
.sol-card { border-top: 3px solid var(--sol-hue, var(--ek-accent)) !important; }
.sol-card[data-route="gov"] { --sol-hue: #00695e; }
.sol-card[data-route="fin"] { --sol-hue: #0f5f8a; }
.sol-card[data-route="eu"]  { --sol-hue: #4c4699; }
.sol-card[data-route="ls"]  { --sol-hue: #0b7a5a; }
.sol-card[data-route="mc"]  { --sol-hue: #8a5a12; }
.sol-card .sol-who { color: var(--sol-hue) !important; }

.sol-card { transition: opacity .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sol-card.is-match {
  box-shadow: 0 0 0 2px var(--sol-hue) !important;
  border-color: var(--sol-hue) !important;
}
.sol-card.is-dim { opacity: .42; }
.sol-card.is-dim:hover, .sol-card.is-dim:focus-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .sol-card { transition: none; } }
@media (max-width: 640px) { .route-picker { flex-direction: column; align-items: stretch; } }
