/* =========================================================
   Higherd – UC09 Gateway Gardens (landing additions + demo screens)
   Builds on css/uc06.css and css/uc06-demo.css
   ========================================================= */

/* ---------- Hero gallery ---------- */
.g9-hero {
  padding-bottom: 3.5rem;
}

.g9-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 40rem;
  margin: 2rem auto 0;
}

.g9-gallery__main {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #E5E7EB;
  aspect-ratio: 1150 / 647;
  box-shadow: 0 18px 40px -22px rgba(16, 24, 40, 0.45);
}

.g9-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g9-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g9-thumb {
  display: block;
  width: 100%;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.g9-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.85;
  border-radius: 8px;
  object-fit: cover;
}

.g9-thumb:hover {
  transform: translateY(-1px);
}

.g9-thumb[aria-pressed="true"] {
  border-color: #4A0FA8;
}

.g9-thumb:focus-visible {
  outline: 2px solid #4A0FA8;
  outline-offset: 2px;
}

.g9-gallery__cap {
  margin: 0;
  font-size: 0.8125rem;
  color: #475467;
}

.g9-credit {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #667085;
}

.g9-credit a {
  color: inherit;
}

.g9-hero__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.g9-btn-solid {
  background: #4A0FA8;
}

.g9-btn-solid:hover {
  background: #3B0A87;
}

.g9-btn-line {
  border: 1.5px solid #4A0FA8;
  background: #fff;
  color: #4A0FA8;
}

.g9-btn-line:hover {
  background: #F3EEFF;
}

@media (min-width: 760px) {
  .g9-gallery {
    grid-template-columns: minmax(0, 1fr) 4.25rem;
    align-items: center;
    max-width: 45rem;
  }

  .g9-gallery__thumbs {
    grid-template-columns: 1fr;
  }

  .g9-gallery__cap {
    grid-column: 1;
  }
}

/* ---------- Journey: screen counter ---------- */
.g9-frameno {
  align-self: center;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: #CBD5E1;
}

@media (max-width: 559px) {
  .g9-frameno {
    display: none;
  }
}

/* =========================================================
   Demo screens
   ========================================================= */
.g9 {
  position: relative;
}

.g9-play .hd-ico {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.g9-play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.g9-plan {
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--hd-line);
  border-radius: 99px;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 500;
  color: var(--hd-copy);
}

.g9-h2 { font-size: 1.25rem; font-weight: 700; }
.g9-h3 { font-size: 1rem; font-weight: 700; }
.g9-xs { font-size: 0.75rem; }
.g9-sm { font-size: 0.8125rem; }

.g9-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hd-accent);
}

.g9-eyebrow.is-flag { color: #C2410C; }

.g9-cap {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hd-accent);
}

.g9-cap .hd-link { font: inherit; text-transform: inherit; }

/* Banner */
.g9-banner { align-items: center; }
.g9-banner__s { margin-top: 4px !important; font-size: 0.8125rem; color: var(--hd-muted); }
.g9-banner__acts { display: grid; justify-items: center; gap: 8px; }
.g9-banner__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.g9-banner__btns .hd-btn { min-width: 9.5rem; }

.g9-btn-ghost {
  border-color: #fff;
  background: #fff;
  color: var(--hd-accent);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.g9-btn-ghost:hover { background: var(--hd-tint); }

.g9 .hd-btn[disabled] {
  border-color: #D0D5DD;
  background: #EAECF0;
  color: #98A2B3;
  cursor: not-allowed;
}

.g9-sublink { font-size: 0.75rem; }
.g9-sublink--muted { color: var(--hd-accent); }

.g9-note {
  padding: 10px 14px;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  background: #FFF7ED;
  font-size: 0.8125rem;
  color: #9A3412;
}

.g9-note .hd-link { font-size: inherit; text-decoration: underline; }

/* Gauges + work type picker */
.g9-grid {
  display: grid;
  gap: 14px;
}

.g9-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 14px;
  align-content: start;
}

.g9-gauge {
  padding: 14px 14px 12px;
  border: 1px solid var(--hd-line);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.g9-gauge__n { display: flex; justify-content: space-between; font-weight: 600; text-align: left; }
.g9-grip { font-size: 0.75rem; color: #98A2B3; }
.g9-gauge__l { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; text-align: left; color: var(--hd-muted); }
.g9-gauge svg { display: block; width: 100%; max-width: 9.5rem; margin: 8px auto 0; }
.g9-gauge__v { margin-top: -4px !important; font-size: 1.5rem; font-weight: 700; color: var(--c); }
.g9-gauge__c { font-size: 0.75rem; font-weight: 600; }
.g9-gauge__g { font-size: 0.6875rem; color: var(--hd-muted); }
.g9-gauge__lg { margin: 12px 0 6px !important; font-size: 0.6875rem; text-align: left; color: var(--hd-muted); }

.g9-gauge__bar {
  position: relative;
  display: block;
  height: 8px;
  margin: 0 4px;
  border-radius: 99px;
  background: #EEF0F3;
}

.g9-gauge__bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.g9-gauge__bar .b1 { left: 0; background: color-mix(in srgb, var(--c) 45%, #fff); }
.g9-gauge__bar .b2 { background: var(--c); border-radius: 0 99px 99px 0; }

.g9-gauge__bar .g9-goal {
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid var(--hd-accent);
  border-radius: 50%;
  background: #fff;
}

.g9-gauge__ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.625rem; color: #98A2B3; }

.g9-gauge__f {
  margin-top: 10px !important;
  padding: 5px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 9%, #fff);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: left;
  color: color-mix(in srgb, var(--c) 80%, #101828);
}

.g9-picks { align-self: start; }
.g9-picklist { display: grid; gap: 4px; }

.g9-pick {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: var(--hd-ink);
  cursor: pointer;
}

.g9-pick:hover:not([disabled]) { background: var(--hd-bg); }
.g9-pick.is-on { background: var(--hd-tint); }
.g9-pick[disabled] { cursor: default; }

.g9-pick__box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #98A2B3;
  border-radius: 50%;
}

.g9-pick.is-on .g9-pick__box { border: 0; color: var(--hd-accent); }
.g9-pick__box .hd-ico { width: 15px; height: 15px; stroke-width: 2.5; }
.g9-pick__l { font-weight: 600; }
.g9-pick__v { font-size: 0.6875rem; color: var(--hd-muted); text-align: right; white-space: nowrap; }
.g9-pick b { min-width: 3.6rem; font-size: 0.8125rem; text-align: right; }

.g9-empty { color: var(--hd-muted); text-align: center; }

/* Business impact */
.g9-biz .hd-bizc b { font-size: 1.25rem; }

/* Next steps / approval workflow */
.g9-flagtxt { font-size: 0.75rem; font-weight: 600; color: var(--hd-accent); }

.g9-steps,
.g9-flow,
.g9-flow ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g9-step,
.g9-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hd-line);
  border-left: 3px solid #98A2B3;
  border-radius: 10px;
  background: #fff;
}

.g9-step > span:nth-child(2),
.g9-node__t { display: grid; gap: 2px; }
.g9-step b, .g9-node b { font-size: 0.8125rem; font-weight: 600; }
.g9-step em, .g9-node em { font-size: 0.75rem; font-style: normal; font-weight: 600; color: var(--hd-muted); }
.g9-step small, .g9-node small { font-size: 0.6875rem; color: var(--hd-muted); }

.g9-step__dot,
.g9-node__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #D0D5DD;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.g9-step.is-cur, .g9-step.is-done, .g9-node.is-you { border-color: #BBF7D0; border-left-color: #16A34A; background: #F0FDF4; }
.g9-step.is-cur em, .g9-step.is-done em, .g9-node.is-you em { color: #16A34A; }
.g9-step.is-cur .g9-step__dot, .g9-step.is-done .g9-step__dot, .g9-node.is-you .g9-node__dot { border-color: #16A34A; background: #16A34A; }

.g9-step.is-ready, .g9-step.is-now, .g9-node.is-now { border-color: #FDBA74; border-left-color: #F97316; background: #FFF7ED; }
.g9-step.is-ready em, .g9-step.is-now em, .g9-node.is-now em { color: #EA580C; }
.g9-step.is-ready .g9-step__dot, .g9-step.is-now .g9-step__dot, .g9-node.is-now .g9-node__dot { border-color: #F97316; background: #F97316; font-size: 0.5rem; }

.g9-step__go {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.g9-step__go:hover { box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.35); }

@media (min-width: 760px) {
  .g9-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .g9-flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 22px; }
  .g9-flow > li { position: relative; }
  .g9-flow > li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -22px;
    width: 22px;
    height: 2px;
    background: #D0D5DD;
  }
}

/* Candidates */
.g9-tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.g9-search {
  display: flex;
  flex: 1 1 14rem;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hd-muted);
}

.g9-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--hd-ink);
}

.g9-search:focus-within { border-color: var(--hd-accent); }

.g9-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  background: #fff;
}

.g9-seg__l { padding: 0 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; color: var(--hd-muted); }

.g9-seg button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hd-line);
  border-radius: 7px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--hd-ink);
  cursor: pointer;
}

.g9-seg button[aria-pressed="true"] { border-color: var(--hd-accent); background: var(--hd-accent); font-weight: 600; color: #fff; }

.g9-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; }

.g9-select {
  display: inline-flex;
  justify-content: space-between;
  gap: 2rem;
  min-width: 16rem;
  padding: 10px 14px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  background: var(--hd-bg);
  font-weight: 600;
}

.g9-scope__note { flex-basis: 100%; }

.g9-cands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 14px;
}

.g9-cand {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  background: #fff;
}

.g9-cand.is-sel { border: 2px solid var(--hd-accent); padding: 15px; }
.g9-cand__h { display: flex; justify-content: space-between; align-items: flex-start; }

.g9-av {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hd-tint);
  color: var(--hd-accent);
}

.g9-cand__imp { display: grid; justify-items: end; gap: 2px; }
.g9-cand__imp small { font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; color: var(--hd-muted); }
.g9-ring { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.g9-ring svg { width: 24px; height: 24px; }
.g9-ring b { font-size: 0.8125rem; }
.g9-cand__n { margin-top: 6px !important; font-size: 1.0625rem; font-weight: 700; }
.g9-cand__r { font-size: 0.75rem; color: var(--hd-copy); }
.g9-cand__m { font-size: 0.6875rem; font-weight: 600; color: var(--hd-accent); }
.g9-cand__m .is-key { text-decoration: underline; text-underline-offset: 2px; }
.g9-cand__t { font-size: 0.75rem; color: var(--hd-copy); }

.g9-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.g9-tags span { padding: 2px 9px; border-radius: 99px; background: #F2F4F7; font-size: 0.6875rem; color: var(--hd-copy); }

.g9-capbox {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--hd-line);
  border-radius: 8px;
  background: var(--hd-bg);
}

.g9-capbox__l { font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; color: var(--hd-accent); }
.g9-capbox p:nth-child(2) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.g9-capbox b { font-size: 1.0625rem; color: #16A34A; }
.g9-capbox span { font-size: 0.6875rem; font-weight: 600; }
.g9-capbox small { font-size: 0.625rem; color: var(--hd-muted); }

.g9-cand__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.g9-cand__acts .hd-btn { min-height: 34px; padding: 0 8px; font-size: 0.75rem; }
.g9 .g9-btn-off[disabled] { border-color: #E9E3FB; background: #EFEAFD; color: #8F86B3; }

.g9-prop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.g9-prop > div { display: grid; flex: 1 1 26rem; gap: 6px; }
.g9-proj { font-size: 0.75rem; font-weight: 600; color: var(--hd-accent); }

/* ---------- Higherd AI dialogs: the dashboard stays visible behind ---------- */
.g9-dim { filter: saturate(0.85); }

.g9-modal {
  position: absolute;
  inset: 0;
  top: 34px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 16px 16px;
  overflow-y: auto;
  background: rgba(196, 199, 214, 0.55);
  animation: g9-fade 200ms ease;
}

.g9-modal__card {
  width: min(34rem, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, 0.45);
  animation: g9-rise 240ms ease;
}

.g9-modal__h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(100deg, #6D28D9, #9333EA);
  color: #fff;
}

.g9-modal__h > .hd-ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.g9-modal__h p { display: grid; flex: 1; }
.g9-modal__h b { font-size: 1.0625rem; }
.g9-modal__h small { font-size: 0.6875rem; opacity: 0.85; }
.g9-modal__h > span { font-size: 0.75rem; }

.g9-x {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.125rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.g9-x:hover { background: rgba(255, 255, 255, 0.28); }

.g9-modal__b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px 6px; }
.g9-tblwrap { overflow-x: auto; }
.g9-modal__f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 20px 18px; }

.g9-mt { font-size: 1.25rem; font-weight: 700; }
.g9-ml { color: var(--hd-copy); }
.g9-q { padding: 9px 12px; border-radius: 10px; background: var(--hd-tint); font-weight: 600; }

.g9-item { padding: 12px 14px; border: 1px solid var(--hd-line); border-radius: 10px; }
.g9-item__t { margin-top: 2px !important; font-weight: 600; }
.g9-item__s { font-size: 0.75rem; color: var(--hd-copy); }

.g9-check { animation: g9-rise 360ms ease both; animation-delay: var(--d); }

.g9-bub { padding: 12px 14px; border: 1px solid var(--hd-line); border-radius: 10px; }
.g9-bub__w { margin-bottom: 4px !important; font-size: 0.6875rem; font-weight: 600; }
.g9-bub--me { border-color: var(--hd-accent); background: var(--hd-accent); color: #fff; }
.g9-scopeline { font-size: 0.75rem; font-weight: 600; color: var(--hd-accent); }
.g9-fine { font-size: 0.6875rem; color: var(--hd-muted); }

.g9-pillbtn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--hd-tint);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hd-accent);
  cursor: pointer;
}

.g9-pillbtn:hover { background: #E9DDFF; }

.g9-sol {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  color: var(--hd-ink);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.g9-sol b { font-size: 1rem; }
.g9-sol > span:not(.g9-eyebrow) { font-size: 0.8125rem; color: var(--hd-copy); }
.g9-sol small { font-size: 0.75rem; color: var(--hd-muted); }
.g9-sol:hover { border-color: var(--hd-accent); box-shadow: 0 0 0 3px rgba(74, 15, 168, 0.1); }

.g9-tbl { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.g9-tbl th, .g9-tbl td { padding: 4px 6px; text-align: center; }
.g9-tbl th[scope="row"], .g9-tbl thead th:first-child { text-align: left; font-weight: 500; }
.g9-tbl thead th { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; color: var(--hd-muted); }

.g9-choose { font-weight: 600; }

.g9-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: var(--hd-ink);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.g9-opt:hover:not([disabled]) { border-color: var(--hd-accent); box-shadow: 0 0 0 3px rgba(74, 15, 168, 0.1); }
.g9-opt[disabled] { opacity: 0.5; cursor: not-allowed; }
.g9-opt > span:last-child { display: grid; gap: 2px; }
.g9-opt b { font-size: 1rem; }
.g9-opt small { font-size: 0.75rem; color: var(--hd-copy); }

.g9-opt__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hd-tint);
  font-weight: 600;
  color: var(--hd-accent);
}

@keyframes g9-fade { from { opacity: 0; } }
@keyframes g9-rise { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .g9-modal, .g9-modal__card, .g9-check { animation: none; }
}

@media (min-width: 1000px) {
  .g9-grid { grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); }
  .g9-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .g9-banner__acts { justify-items: start; }
  .g9-pick { grid-template-columns: auto auto 1fr auto; }
  .g9-pick__v { display: none; }
  .g9-modal { padding: 1rem 8px 8px; }
  .g9-modal__h > span { display: none; }
  .g9-modal__b { padding: 14px 14px 4px; }
  .g9-modal__f { padding: 10px 14px 14px; }
  .g9-tbl th, .g9-tbl td { padding: 4px 3px; }
  .g9-cand__acts { grid-template-columns: 1fr; }
}
