:root {
  --bg: #f5f6fb;
  --white: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #f7931e;       /* warm orange */
  --accent-soft: #fff6e8;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --max-width: 1120px;
  scroll-behavior: smooth;
  text-align: justify;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.image-placeholder {
  width: 100%;
  height: 670px;          /* equal height across all images */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;     /* neutral fill around contained img */
  border-radius: 12px;
  overflow: hidden;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: contain;   
}


body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0, #f3f4ff 55%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT WRAPPER */

.page {
  /* max-width: var(--max-width); */
  margin: 32px auto 48px;
  display: flex;
  gap: 24px;
  padding: 0 16px;
}

/* ============= SIDEBAR (VERTICAL NAV) ============= */



/* Make sidebar use the full viewport height (minus page margins)
   and layout its children vertically */
.sidebar {
  /* keep sticky behaviour but grow to full screen */
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px); /* adjust if you have a different top margin */
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  gap: 12px;

  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);

}

/* Make the nav area take remaining space so we can distribute items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  min-height: 0;      /* allow flex child to shrink */
  overflow-y: auto;
  padding-right: 4px;
  list-style: none;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #f1f2f7;
  flex: 1 1 auto;
}


.sidebar-nav li {
  margin-bottom: 4px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}


.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd266, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #422006;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-left: 20px;
  text-transform: uppercase;
}

.sidebar-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}



.sidebar-link span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.sidebar-link:hover {
  background: var(--accent-soft);
  color: var(--text-main);
  padding-left: 12px;
}

.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--text-main);
  font-weight: 600;
  padding-left: 12px;
}

/* ============= MAIN CONTENT ============= */

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HERO */

.hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px 20px;
  border: 1px solid rgba(250, 204, 133, 0.6);
  background-image: radial-gradient(circle at top right, #fff3e0 0, #ffffff 55%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #92400e;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
}




.matrix-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 90px;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  align-items: center;
}

.matrix-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.matrix-cell {
  font-size: 13px;
  color: var(--text-main);
}

.matrix-badge {
  font-size: 11px;
  text-align: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.matrix-badge.high {
  background: #fee2e2;
  color: #b91c1c;
}

.matrix-badge.medium {
  background: #fef3c7;
  color: #b45309;
}

.matrix-badge.low {
  background: #e0f2fe;
  color: #0369a1;
}

/* Goals spacing */
.goals-heading {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}

.goals-list li {
  margin-left: 18px;
}


/* SECTIONS */

.section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 22px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.section + .section {
  margin-top: 4px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.section-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 3px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.section-title-small {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  
}
.context-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: flex-start; /* ensures both headings align at top */
}

.context-left h2,
.context-right h2 {
  margin-top: 0;           /* remove any spacing above headings */
  padding-top: 0;
}


.section-caption {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
}

/* GENERAL TEXT */

p {
  font-size: 14px;
  margin-bottom: 10px;
}

ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* GRID HELPERS */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 8px;
  gap: 20px;

}

.two-column--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.impact-list li {
  margin-bottom: 6px;
}



/* PROCESS / FLOW CARDS */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.process-card {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  padding: 12px 12px 10px;
  background: #f9fafb;
}

.process-step {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}

.process-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-body {
  font-size: 12px;
  color: var(--text-muted);
}

.flow-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.flow-card {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px 8px;
  background: #f9fafb;
}

.flow-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-body {
  font-size: 12px;
  color: var(--text-muted);
}

/* SUBTITLES / TAGS */

.subsection-title {
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #000000;
  margin: 32px 0 4px;
}

.inline-tag {
  display: inline-block;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  padding: 2px 8px;
  font-size: 11px;
  margin-left: 4px;
  color: #92400e;
}

.highlight-card {
  margin-top: 8px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.mockup-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* HIGHLIGHTS GRID */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.highlight-item {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  padding: 10px 12px;
  font-size: 13px;
}

.highlight-item strong {
  display: block;
  margin-bottom: 4px;
}

/* IMPACT LIST */



/* RESPONSIVE */


/* SUBHEADING INSIDE SECTIONS */
.subheading {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* PAIN MATRIX */

/* ===== Pain summary (cards + header band) ===== */
.pain-summary { padding-top: 6px; }

  .matrix-row--header {
  display: grid;
  grid-template-columns: 1.6fr 1fr 120px;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,246,224,0.95), rgba(255,246,224,0.98));
  border: 1px solid rgba(245,158,11,0.08);
  color: #92400e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
  align-items: center;
}

/* container for each card row */
.pain-matrix { display: grid; gap: 12px; }

/* single row = card */
.matrix-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 90px;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  align-items: start;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  
}

/* adjust font sizes */
.matrix-cell { font-size: 14px; color: var(--text-main); line-height: 1.45; }

/* severity badge */
.matrix-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.matrix-badge.high { background: #fee2e2; color: #b91c1c; }
.matrix-badge.medium { background: #fef3c7; color: #b45309; }
.matrix-badge.low { background: #e0f2fe; color: #0369a1; }

/* header small-caps kicker spacing */
.matrix-row.matrix-row--header .matrix-title { padding-left: 2px; }




.matrix-row--header {
  background: #fff7ed;
  border-style: dashed;
}

.matrix-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.matrix-cell {
  font-size: 14px;
  gap: 30px;
  color: var(--text-main);
}

.matrix-badge {
  font-size: 11px;
  text-align: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.matrix-badge.high {
  background: #fee2e2;
  color: #b91c1c;
}

.matrix-badge.medium {
  background: #fef3c7;
  color: #b45309;
}

.matrix-badge.low {
  background: #e0f2fe;
  color: #0369a1;
}

/* IMAGE GRIDS / GALLERIES */

.image-grid-w {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 16px;
}



.image-placeholder-w {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-image-w {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-caption,
.image-caption-w {
  font-size: 14px;
  font-weight: 400;
  color: #111827;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 16px;
}


.image-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.image-card, .image-card-w {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.image-placeholder {
  width: 100%;
  height: 480px;           /* same height for all UI screens */
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}




/* FLOW DIAGRAM BLOCK */

.flow-diagram {
  margin-top: 10px;
}

/* PROTOTYPE CTA */

.prototype-cta {
  margin-top: 8px;
  margin-bottom: 12px;
  margin-left: 40%;
  /* padding: 12px 14px; */
  border-radius: 14px;
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.4);
  /* font-size: 19px; */
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}


/* TYPOGRAPHY TABLE */
.type-table-container {
  margin-top: 20px;
}

.type-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);


}


.type-table th {
  text-align: left;
  padding: 12px 54px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 20px;
  background-color: #fff7ed;
  color: #92400e;
}

.type-table td {
  padding: 12px 54px;
  border-top: 1px solid #f0f0f0;
  color: fff7ed;
}


.type-table thead { background: #fff6e8; }


.type-table tr:hover { background: #f9fafb; }



.button-primary {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}


  .matrix-row,
  .matrix-row--header {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }


.ui-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 10px;
}

.ui-col { display: flex; flex-direction: column; gap: 12px; }

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.chip-preview {
  background: #F3F3F3;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  width: fit-content;
}

.ui-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ui-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-block {
  width: 100%;
  height: 60px;
  border-radius: 10px;
}

.color-info {
  font-size: 12px;
  color: var(--text-main);
}

.button-preview {
  margin-top: 10px;
  margin-bottom: 12px;
}

.btn-preview {
  background: #FE8B34;
  border: 1.3px solid #A3561B;
  padding: 10px 22px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
}

.type-list p { margin-bottom: 6px; font-size: 14px; }
.type-h1 { font-size: 26px; font-weight: 700; }
.type-h2 { font-size: 20px; font-weight: 700; }
.type-caption { font-size: 12px; opacity: 0.6; }

/* ---------- HAMBURGER / MOBILE SIDEBAR FIX ---------- */

/* ensure top stacking order (hamburger above everything) */
.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2300;            /* highest */
  border: none;
  background: #111827;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
  display: none;            
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0.06);
}

/* optional alternate wrapper */
.hamburger-btn { position: fixed; top: 20px; left: 20px; z-index: 2400; cursor: pointer; }

/* Backdrop behind sidebar (under the hamburger but above page) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 2100;   /* below hamburger, above content */
  transition: opacity 0.18s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: sidebar becomes a slide-in drawer; ensure z-index is below hamburger but above backdrop? */
.sidebar {
  /* keep desktop rules for non-mobile; override for mobile below */
  z-index: 2200;   /* below hamburger (2300) but above backdrop (2100) */
  transition: transform 0.25s ease;
}
/* -------- PAIN MATRIX (2-column layout) -------- */

.pain-matrix {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;   /* two columns only */
  gap: 20px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  align-items: flex-start;
}

.matrix-row--header {
  background: #fff7ed;
  border-style: dashed;
  font-weight: 600;
}

.matrix-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.matrix-cell {
  font-size: 14px;
  color: #111827;
  line-height: 1.55;
}

/* Mobile: stack rows */
@media (max-width: 880px) {
  .matrix-row,
  .matrix-row--header {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
