@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sora', sans-serif;
  background: #F0EEE9;
  color: #18170F;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #fff;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: #fff;
  font-weight: 500;
}

/* Main App */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* Header */
.top-bar {
  padding: 52px 28px 28px;
}

.top-bar h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
}

.top-bar p {
  margin-top: 6px;
  font-size: 13px;
  color: #8C8880;
  font-weight: 400;
  line-height: 1.5;
}

/* Progress */
.path-row {
  display: flex;
  align-items: center;
  padding: 0 28px 32px;
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8D5CE;
  flex-shrink: 0;
  transition: background 0.35s ease, width 0.2s ease;
}

.pdot.active {
  background: #18170F;
  width: 20px;
  border-radius: 4px;
}

.pdot.done {
  background: #3DAA72;
}

.pline {
  flex: 1;
  height: 2px;
  background: #D8D5CE;
  transition: background 0.4s ease;
}

.pline.done {
  background: #3DAA72;
}

/* Stage wrapper */
.stage {
  padding: 0 20px;
  animation: slideUp 0.3s ease both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-h {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 0 4px 8px;
}

.stage-s {
  font-size: 13px;
  color: #8C8880;
  line-height: 1.6;
  padding: 0 4px 22px;
}

/* Back */
.back {
  background: none;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: #A8A49C;
  cursor: pointer;
  padding: 0 28px 24px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back:hover {
  color: #18170F;
}

/* Need cards */
.need-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.need-card {
  background: #fff;
  border-radius: 22px;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.12s ease, background 0.15s ease;
}

.need-card:hover {
  transform: translateY(-1px);
}

.need-card.sel {
  background: #18170F;
}

.need-card p {
  font-size: 15px;
  font-weight: 500;
  color: #18170F;
  line-height: 1.4;
}

.need-card.sel p {
  color: #fff;
}

.need-card .arr {
  color: #C8C4BC;
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 12px;
}

.need-card.sel .arr {
  color: #fff;
}

/* Textarea */
.txt-block {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
}

.txt-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A8A49C;
  display: block;
  margin-bottom: 12px;
}

.txt-area {
  width: 100%;
  background: #F0EEE9;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: #18170F;
  resize: none;
  outline: none;
  line-height: 1.6;
}

.txt-area::placeholder {
  color: #A8A49C;
}

/* Buttons */
.cta-wrap {
  padding: 16px 0 0;
}

.cta {
  width: 100%;
  background: #18170F;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 18px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: -0.2px;
}

.cta:hover {
  background: #2e2d24;
  transform: translateY(-1px);
}

.cta-ghost {
  width: 100%;
  background: transparent;
  color: #A8A49C;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 13px;
}

.cta-ghost:hover {
  color: #18170F;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-item {
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
  position: relative;
}

.cat-item.hi {
  background: #18170F;
}

.cat-item.lo {
  background: #E8E6E1;
  opacity: 1;
}

.cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cat-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #18170F;
  line-height: 1.35;
  flex: 1;
}

.cat-item.hi .cat-name {
  color: #fff;
}

.cat-item.lo .cat-name {
  color: #8C8880;
}

.cat-arrow {
  color: #C8C4BC;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-top: -2px;
}

.cat-item.hi .cat-arrow {
  color: #fff;
}

.cat-arrow.open {
  transform: rotate(90deg);
}

.cat-desc {
  font-size: 11px;
  color: #7A7670;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.cat-desc.open {
  max-height: 150px;
  margin-top: 8px;
  opacity: 1;
}

.cat-item.hi .cat-desc {
  color: rgba(255, 255, 255, 0.8);
}

.cat-item.lo .cat-desc {
  color: #A8A49C;
}

.cat-item.lo .cat-arrow {
  color: #C8C4BC;
}

/* Dark band */
.band {
  background: #18170F;
  border-radius: 20px;
  padding: 20px 22px;
}

.band p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.band strong {
  color: #fff;
}

/* Alternative dark band */
.band-dark {
  background: #18170F;
  border-radius: 20px;
  padding: 20px 22px;
}

.band-dark p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.band-dark strong {
  color: #fff;
}

.band-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.band-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.band-list li {
  margin-bottom: 6px;
}

/* Tinted band */
.band-tint {
  background: #EAE8E2;
  border-radius: 20px;
  padding: 20px 22px;
}

.band-tint p {
  font-size: 13.5px;
  color: #4A4742;
  line-height: 1.65;
}

.band-tint strong {
  color: #18170F;
}

.band-tint .band-title {
  font-size: 13px;
  font-weight: 700;
  color: #18170F;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.band-tint .band-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #4A4742;
  line-height: 1.65;
}

.band-tint .band-list li {
  margin-bottom: 6px;
}

/* Process / step list shared */
.proc-list {
  display: flex;
  flex-direction: column;
}

.proc-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  cursor: pointer;
}

.pl {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 30px;
}

.pn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #18170F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pvl {
  width: 2px;
  flex: 1;
  background: #E2DFD8;
  margin-top: 6px;
  min-height: 16px;
}

.pc {
  flex: 1;
  padding-top: 5px;
}

.pt {
  font-size: 15px;
  font-weight: 600;
}

.pb {
  font-size: 13px;
  color: #7A7670;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.pb.open {
  max-height: 250px;
  opacity: 1;
}

.pnote {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #18170F;
  background: #E6F6EE;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

/* Assessments */
.assess-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assess-item {
  background: #fff;
  border-radius: 18px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.assess-item.dim {
  opacity: 0.36;
}

.assess-item.dim:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.assess-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #F0EEE9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #4A4742;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
  white-space: pre;
}

.assess-area {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #18170F;
  background: #E6F6EE;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.assess-name {
  font-size: 14px;
  font-weight: 600;
  color: #18170F;
}

.assess-desc {
  font-size: 12px;
  color: #8C8880;
  margin-top: 2px;
  line-height: 1.4;
}

/* Eligibility gates */
.gate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.gate-item {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gate-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #18170F;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.gate-body {
  flex: 1;
}

.gate-label {
  font-size: 14px;
  font-weight: 600;
  color: #18170F;
  line-height: 1.4;
  margin-bottom: 4px;
}

.gate-detail {
  font-size: 12.5px;
  color: #8C8880;
  line-height: 1.55;
}

/* Eligibility outcomes */
.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.outcome-item {
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.outcome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.outcome-result {
  font-size: 14px;
  font-weight: 700;
  color: #18170F;
  margin-bottom: 3px;
}

.outcome-desc {
  font-size: 12.5px;
  color: #8C8880;
  line-height: 1.5;
}

/* Services / chips */
.svc-section {
  margin-bottom: 16px;
}

.svc-section:last-child {
  margin-bottom: 0;
}

.svc-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A8A49C;
  margin-bottom: 10px;
  padding: 0 2px;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-chip {
  background: #F0EEE9;
  border-radius: 40px;
  padding: 9px 17px;
  font-size: 13px;
  color: #4A4742;
}

/* Timeline (transition ages) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.tl-item {
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
}

.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 54px;
}

.tl-age {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  background: #18170F;
  border-radius: 8px;
  padding: 5px 6px;
  width: 100%;
}

/* Keep original class name but style differently */
.tl-age-pill {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  background: #18170F;
  border-radius: 8px;
  padding: 5px 6px;
  width: 100%;
}

.tl-vl {
  width: 2px;
  flex: 1;
  background: #E2DFD8;
  margin-top: 6px;
  min-height: 14px;
}

.tl-right {
  flex: 1;
  padding-top: 2px;
}

.tl-label {
  font-size: 14px;
  font-weight: 600;
  color: #18170F;
  margin-bottom: 3px;
}

.tl-desc {
  font-size: 12.5px;
  color: #8C8880;
  line-height: 1.55;
}

/* Dismissal cards */
.dismiss-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.dismiss-item {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
}

.dismiss-trigger {
  font-size: 13px;
  font-weight: 700;
  color: #18170F;
  margin-bottom: 4px;
}

.dismiss-desc {
  font-size: 12.5px;
  color: #8C8880;
  line-height: 1.55;
}

/* Safeguard accordion */
.sg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.sg-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sg-title {
  font-size: 14px;
  font-weight: 600;
  color: #18170F;
  line-height: 1.4;
}

.sg-arrow {
  color: #C8C4BC;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sg-arrow.open {
  transform: rotate(90deg);
}

.sg-body {
  font-size: 13px;
  color: #7A7670;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px;
  opacity: 0;
}

.sg-body.open {
  max-height: 250px;
  padding-bottom: 18px;
  opacity: 1;
}

/* Utility */
.sp {
  height: 20px;
}

.sp2 {
  height: 14px;
}

.sp3 {
  height: 28px;
}

/* Expand sections */
.expand-section {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.expand-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.expand-title {
  font-size: 14px;
  font-weight: 600;
  color: #18170F;
  line-height: 1.4;
}

.expand-arrow {
  color: #C8C4BC;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.expand-arrow.open {
  transform: rotate(90deg);
}

.expand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px;
  opacity: 0;
}

.expand-body.open {
  max-height: 1200px;
  padding-bottom: 18px;
  opacity: 1;
}

/* Section title */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #A8A49C;
  padding: 0 2px 10px;
}

/* Progress levels */
.progress-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.progress-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.prog-left {
  flex-shrink: 0;
}

.prog-signal {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.prog-right {
  flex: 1;
}

.prog-level {
  font-size: 13.5px;
  font-weight: 600;
  color: #18170F;
  margin-bottom: 2px;
}

.prog-meaning {
  font-size: 12px;
  color: #8C8880;
  line-height: 1.45;
}

/* Term tooltips */
.term-link {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #C8C4BC;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: text-decoration-color 0.2s ease;
}

.term-link:hover {
  text-decoration-color: #18170F;
}

/* Term drawer overlay */
.term-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.3s ease;
  pointer-events: none;
}

.term-drawer-overlay.active {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* Term drawer (mobile) */
.term-drawer {
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-width: 480px;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.term-drawer-overlay.active .term-drawer {
  transform: translateY(0);
}

.term-drawer-handle {
  width: 36px;
  height: 4px;
  background: #D8D5CE;
  border-radius: 2px;
  margin: 12px auto 0;
}

.term-drawer-content {
  padding: 20px 24px 32px;
}

.term-drawer-term {
  font-size: 18px;
  font-weight: 700;
  color: #18170F;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.term-drawer-full {
  font-size: 14px;
  font-weight: 600;
  color: #3DAA72;
  margin-bottom: 12px;
}

.term-drawer-desc {
  font-size: 14px;
  color: #4A4742;
  line-height: 1.6;
}

/* Desktop modal */
@media (min-width: 768px) {
  .term-drawer-overlay {
    align-items: center;
    justify-content: center;
  }
  
  .term-drawer {
    border-radius: 20px;
    max-width: 500px;
    transform: scale(0.9);
    opacity: 0;
    margin-bottom: 0;
  }
  
  .term-drawer-overlay.active .term-drawer {
    transform: scale(1);
    opacity: 1;
  }
  
  .term-drawer-handle {
    display: none;
  }
  
  .term-drawer-content {
    padding: 28px 32px;
  }
  
  .term-drawer-term {
    font-size: 20px;
  }
  
  .term-drawer-full {
    font-size: 15px;
  }
  
  .term-drawer-desc {
    font-size: 14.5px;
  }
}
