:root {
  --ink: #162236;
  --navy: #09162b;
  --navy-2: #10233f;
  --muted: #55657b;
  --line: rgba(16, 35, 63, 0.12);
  --paper: #ffffff;
  --wash: #f4f1ec;
  --accent: #ef7d22;
  --accent-dark: #d96b16;
  --success: #237448;
  --blue: #2d65b5;
  --locked: #8a949e;
  --shadow: 0 18px 45px rgba(10, 22, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.topbar {
  position: relative;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(17, 34, 54, 0.08);
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subhead,
.muted,
.small {
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(226, 100, 34, 0.22);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary:hover {
  background: #f7f9fa;
  color: var(--ink);
  box-shadow: none;
}

.compact {
  padding: 9px 14px;
}

.text-button {
  padding-left: 0;
  background: transparent;
  color: var(--ink);
}

.text-button:hover {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
}

.panel,
.implementation-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(17, 34, 54, 0.06);
}

label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #b8c2cc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(226, 100, 34, 0.18);
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
}

.message {
  min-height: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Login */
.gate-wrap {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 42px 24px;
}

.gate-scene {
  position: absolute !important;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.05) 45%,
      rgba(14,32,55,.10) 100%
    ),
    url("/assets/images/pinnacle-snowcaps.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.gate-card {
  position: relative;
  z-index: 5;
  width: min(560px, 100%);
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 70px rgba(13, 36, 56, 0.24);
}

.gate-card h1 span {
  color: var(--accent);
}

.gate-card .subhead {
  margin-bottom: 26px;
  font-size: 1.07rem;
}

.gate-card button {
  width: 100%;
  margin-top: 16px;
}


/* Dashboard */
.dashboard {
  padding-bottom: 70px;
}

.hero{
    position:relative;
    height:520px;
    overflow:hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.18) 0%,
            rgba(255,255,255,.05) 45%,
            rgba(14,32,55,.10) 100%
        ),
        url("/assets/images/pinnacle-sunrise.png");

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 28px;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.3);
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy > p:last-child {
  max-width: 640px;
  font-size: 1.18rem;
  font-weight: 650;
}

.journey-bar {
  position: relative;
  z-index: 8;
  max-width: 1180px;
  margin: -84px auto 24px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 0.45fr);
  align-items: center;
  gap: 22px;
  border-radius: 20px;
  background: linear-gradient(115deg, var(--navy), #142d43);
  color: #fff;
  box-shadow: var(--shadow);
}

.journey-ring {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  font-size: 1.25rem;
}

.journey-copy h2 {
  margin: 0 0 4px;
}

.journey-copy p {
  margin: 0 0 10px;
  color: #d9e5ed;
}

.journey-next {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.journey-next small {
  display: block;
  margin-bottom: 5px;
  color: #b7c8d5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-wrap {
  flex: 1;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe5ea;
}

.journey-bar .progress-wrap {
  background: rgba(255, 255, 255, 0.22);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f39a4b);
  transition: width 0.3s ease;
}

.spotlight-grid {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spotlight-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(17, 34, 54, 0.07);
}

.spotlight-card .label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight-card h3 {
  margin: 16px 0 8px;
  font-size: 1.35rem;
}

.spotlight-card p {
  flex: 1;
  color: var(--muted);
}

.spotlight-card.continue .label {
  color: var(--blue);
}

.spotlight-card.completed .label {
  color: var(--success);
}

.spotlight-progress {
  height: 7px;
  margin: 8px 0 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8edf1;
}

.spotlight-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.library-panel,
.completed-section {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17, 34, 54, 0.06);
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.search-wrap {
  width: min(320px, 100%);
  margin: 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.category-tabs button {
  padding: 9px 14px;
  background: #f3f6f8;
  color: var(--ink);
  border: 1px solid transparent;
}

.category-tabs button.active {
  background: #fff4ec;
  color: var(--accent-dark);
  border-color: #ffd6bf;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product {
  position: relative;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 34, 54, 0.1);
}

.product h3 {
  margin: 15px 0 8px;
  font-size: 1.15rem;
}

.product p {
  flex: 1;
  color: var(--muted);
}

.product button {
  width: 100%;
}

.product-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 9px;
  background: #e8f4ed;
  color: var(--success);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge.locked {
  background: #eef1f3;
  color: var(--locked);
}

.badge.progress {
  background: #eaf1fb;
  color: var(--blue);
}

.show-more {
  display: block;
  margin: 22px auto 0;
}

.completed-section summary {
  cursor: pointer;
  font-weight: 800;
}

.completed-section summary span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  background: #e8f4ed;
  color: var(--success);
  border-radius: 20px;
}

.completed-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.completed-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* Guide runner and result */
.content-shell {
  max-width: 920px;
  margin: 36px auto 70px;
  padding: 0 20px;
}

.runner-head,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.question-panel {
  max-width: 780px;
  margin: auto;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.option input {
  width: auto;
  margin-top: 5px;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.implementation-plan {
  margin-top: 16px;
}

.playbook-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.phase {
  margin-top: 30px;
}

.task {
  margin: 20px 0;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--accent);
}

.task-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.parking {
  margin-top: 28px;
  padding: 18px;
  background: #f6f7f8;
  border-radius: 12px;
}

.next-steps {
  margin-top: 30px;
}

.next-marker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.next-marker-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.next-marker-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.next-marker-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

.next-marker-btn {
  margin-top: 10px;
  align-self: flex-start;
}

/* ── SITE FOOTER (matches pinnacleprocessgroup.com) ── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 620px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .journey-bar {
    margin: -55px 20px 24px;
    grid-template-columns: auto 1fr;
  }

  .journey-next {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 66px;
    padding: 0 18px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.64rem;
  }

  .gate-wrap {
    min-height: calc(100vh - 66px);
    padding: 22px 16px;
  }

  .gate-card {
    width: 100%;
    padding: 28px 22px;
  }

  .hero {
    height: 405px;
  }

  .hero-copy {
    padding: 70px 20px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .journey-bar {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .journey-ring {
    width: 70px;
    height: 70px;
  }

  .library-heading,
  .runner-head,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .library-panel,
  .completed-section {
    margin-right: 12px;
    margin-left: 12px;
    padding: 18px;
  }

  .panel,
  .implementation-plan {
    padding: 20px;
  }

  .actions {
    gap: 10px;
  }

  .actions button {
    flex: 1;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .category-tabs button {
    white-space: nowrap;
  }

  .spotlight-grid {
    padding: 0 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  #gate,
  #dashboard,
  #runner,
  .no-print {
    display: none !important;
  }

  .content-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .implementation-plan {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .task {
    break-inside: avoid;
  }
}