/* Widget styles — plan tracker, resume wizard, pitch builder, company tracker, FAQ accordion. */

/* ============ PLAN TRACKER (Section 14) ============ */
.plan-phase { margin: 56px 0; }
.plan-phase:first-of-type { margin-top: 32px; }
.plan-blurb {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--soft-black);
  margin: 0 0 22px;
  max-width: 600px;
}
.plan-progress {
  height: 6px;
  background: rgba(183, 110, 121, 0.14);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.plan-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-gold-light));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.plan-progress-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.plan-weeks { display: grid; gap: 14px; }
.plan-week {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  transition: border-color 0.2s, background-color 0.2s;
}
.plan-week.is-done {
  background: linear-gradient(180deg, var(--surface-up), var(--surface));
  border-color: var(--rose-gold);
  box-shadow: inset 3px 0 0 var(--rose-gold);
}
.plan-week-head { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.plan-week-box {
  width: 26px; height: 26px;
  border: 1.5px solid var(--rose-gold);
  border-radius: 50%;
  background: var(--surface-up);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex: none;
  margin-top: 2px;
  transition: background-color 0.22s, transform 0.22s;
}
.plan-week-box svg { width: 16px; height: 16px; }
.plan-week-box:hover { transform: scale(1.06); }
.plan-week.is-done .plan-week-box { background: var(--rose-gold); }
.plan-week-toprow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.plan-week-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--soft-black);
}
.plan-week-focus {
  font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rose-gold);
}
.plan-week-action {
  font-size: 15.5px; line-height: 1.6;
  color: var(--soft-black-mid);
  margin: 0;
}
.plan-week.is-done .plan-week-action { color: var(--soft-black-faint); }
.plan-week-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding-left: 44px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--rose-gold);
}
.plan-week-date {
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-up);
  color: var(--soft-black);
  text-transform: none;
  letter-spacing: 0;
}
.plan-week-date:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }
.plan-week-note {
  width: 100%; margin: 12px 0 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.55;
  color: var(--soft-black);
  background: var(--surface-up);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-height: 60px;
  resize: vertical;
}
.plan-week-note:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }

/* Goals */
.plan-goals { margin: 80px 0 56px; }
.plan-goal-field { margin-bottom: 22px; }
.plan-goal-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--soft-black);
  margin-bottom: 8px;
}
.plan-goal-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.55;
  color: var(--soft-black);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-height: 64px;
  resize: vertical;
}
.plan-goal-input:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }

/* Monthly journal */
.plan-monthly { margin: 56px 0; }
.plan-monthly-table th { white-space: nowrap; }
.plan-monthly-num {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  color: var(--rose-gold);
  text-align: center;
  width: 60px;
}
.plan-monthly-cell {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13.5px; line-height: 1.5;
  color: var(--soft-black);
  background: var(--surface-up);
  border: 1px solid var(--line);
  border-radius: 2px;
  resize: vertical;
  min-height: 44px;
}
.plan-monthly-cell:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 2px rgba(183, 110, 121, 0.14); }

/* ============ RESUME WIZARD (Appendix B) ============ */
.rw-step { margin: 56px 0; }
.rw-step:first-of-type { margin-top: 32px; }
.rw-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 14px; }
.rw-role-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.rw-role-card:hover { border-color: var(--rose-gold-mid); background: var(--surface-up); }
.rw-role-card.is-selected { border-color: var(--rose-gold); background: rgba(183, 110, 121, 0.06); box-shadow: 0 4px 16px rgba(183, 110, 121, 0.10); }
.rw-role-card.is-selected::after {
  content: '✓';
  position: absolute;
  color: var(--rose-gold);
  font-size: 18px;
}
.rw-role-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--soft-black); }
.rw-role-fits { font-size: 12px; color: var(--soft-black-faint); }

.rw-years { margin: 22px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rw-years label { font-size: 14px; color: var(--soft-black); font-weight: 500; }
.rw-years input {
  width: 100px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}
.rw-years input:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }

.rw-activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 22px; }
.rw-activity {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s;
  position: relative;
}
.rw-activity:hover { border-color: var(--rose-gold-mid); }
.rw-activity.is-checked { border-color: var(--rose-gold); background: rgba(183, 110, 121, 0.05); }
.rw-activity input[type="checkbox"] { display: none; }
.rw-activity-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--rose-gold);
  border-radius: 3px;
  background: var(--surface-up);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.rw-activity-box svg { width: 12px; height: 12px; }
.rw-activity.is-checked .rw-activity-box { background: var(--rose-gold); }
.rw-activity-text { font-size: 14.5px; color: var(--soft-black); line-height: 1.4; }

.rw-output { display: grid; gap: 16px; margin-top: 28px; }
.rw-card {
  background: var(--surface-up);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  position: relative;
}
.rw-card-full { border-top: 3px solid var(--rose-gold); padding-top: 22px; }
.rw-card-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
  margin-bottom: 8px;
}
.rw-card-body { font-size: 15.5px; line-height: 1.62; color: var(--soft-black); margin: 0; }
.rw-bullets { margin: 0; padding: 0; list-style: none; }
.rw-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--soft-black);
}
.rw-bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  background: var(--rose-gold);
  border-radius: 50%;
}
.rw-empty {
  font-style: italic;
  color: var(--soft-black-faint);
  font-size: 14px;
  margin: 0;
}
.rw-copy {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
.rw-copy:hover { background: var(--rose-gold); color: white; }
.rw-copy svg { width: 13px; height: 13px; }
.rw-copy.is-copied { background: var(--rose-gold); color: white; }

/* ============ ELEVATOR PITCH BUILDER (Appendix D) ============ */
.pitch-builder { margin: 28px 0; }
.pitch-fields { display: grid; gap: 14px; }
.pitch-field { display: grid; gap: 6px; }
.pitch-field label {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
}
.pitch-field input, .pitch-field textarea {
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.5;
  color: var(--soft-black);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.pitch-field textarea { min-height: 60px; resize: vertical; }
.pitch-field input:focus, .pitch-field textarea:focus { outline: none; border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }
.pitch-preview {
  margin-top: 28px;
  padding: 26px 30px;
  background: var(--bg-warm);
  border-left: 3px solid var(--rose-gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--soft-black);
}
.pitch-preview-label {
  display: block;
  font-family: var(--font-body); font-style: normal;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
  margin-bottom: 12px;
}
.pitch-preview .placeholder { color: var(--soft-black-faint); }
.pitch-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ COMPANY TRACKER (Appendix E) ============ */
.tracker { margin: 28px 0; }
.tracker-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.tracker-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.tracker-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-gold);
  background: rgba(183, 110, 121, 0.05);
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tracker-table td {
  padding: 6px 6px;
  border-bottom: 1px dotted var(--line);
  vertical-align: middle;
}
.tracker-table input, .tracker-table select {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 2px;
  color: var(--soft-black);
  transition: all 0.15s;
}
.tracker-table input:hover, .tracker-table select:hover { background: var(--surface); }
.tracker-table input:focus, .tracker-table select:focus { outline: none; border-color: var(--rose-gold); background: var(--surface-up); box-shadow: 0 0 0 2px rgba(183, 110, 121, 0.14); }
.tracker-remove {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--soft-black-faint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.2s;
}
.tracker-remove:hover { color: var(--rose-gold); }
.tracker-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.tracker-fit-badge {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(183, 110, 121, 0.1);
  color: var(--rose-gold);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
}
.tracker-fit-5 { background: var(--rose-gold); color: white; }
.tracker-fit-4 { background: var(--rose-gold-mid); color: white; }
.tracker-fit-3 { background: rgba(183, 110, 121, 0.4); color: white; }

/* ============ FAQ ACCORDION ============ */
.faq { margin: 28px 0; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.is-open { border-color: var(--rose-gold); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--soft-black);
  line-height: 1.35;
}
.faq-q-icon {
  flex: none;
  width: 24px; height: 24px;
  color: var(--rose-gold);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 22px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--soft-black-mid);
}
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ============ GLOSSARY PAGE ============ */
.gloss-page { margin: 28px 0; }
.gloss-search-inline {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface-up);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.gloss-search-inline:focus-within { border-color: var(--rose-gold); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.14); }
.gloss-search-inline svg { width: 18px; height: 18px; color: var(--rose-gold); flex: none; }
.gloss-search-inline input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 15.5px;
  color: var(--soft-black);
}
.gloss-search-inline input::placeholder { color: var(--soft-black-faint); }
.gloss-letters {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gloss-letter {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--soft-black-faint);
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.15s;
}
.gloss-letter:hover { background: var(--rose-gold-soft); color: var(--rose-gold); text-decoration: none; }
.gloss-letter.is-disabled { opacity: 0.3; pointer-events: none; }
.gloss-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.gloss-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  scroll-margin-top: 100px;
}
.gloss-entry:hover .gloss-entry-term { color: var(--rose-gold); }
.gloss-entry-term {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--soft-black);
  margin: 0;
  transition: color 0.18s;
}
.gloss-entry-def {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--soft-black-mid);
}
.gloss-entry-why {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--soft-black);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
}
.gloss-letter-group {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--rose-gold);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rose-gold);
  scroll-margin-top: 80px;
}
.gloss-empty {
  padding: 48px 24px; text-align: center;
  color: var(--soft-black-faint);
  font-style: italic;
}

@media (max-width: 760px) {
  .gloss-entry { grid-template-columns: 1fr; gap: 6px; }
  .rw-role-grid, .rw-activity-grid { grid-template-columns: 1fr; }
  .plan-week-meta { padding-left: 0; flex-wrap: wrap; }
}

/* table of cards (used on index quick-start) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 28px 0; }
.card-grid-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
}
.card-grid-item:hover { border-color: var(--rose-gold); transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 20px rgba(183, 110, 121, 0.08); }
.card-grid-item .label {
  display: block;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
  margin-bottom: 8px;
}
.card-grid-item .title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--soft-black);
  margin-bottom: 6px;
  line-height: 1.25;
}
.card-grid-item .desc {
  font-size: 13.5px;
  color: var(--soft-black-mid);
  line-height: 1.5;
}

/* Hero on index */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}
.hero-eyebrow { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-gold); font-weight: 600; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(46px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.014em;
  color: var(--soft-black);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-mid), var(--rose-gold-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-deck {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--soft-black-mid);
  margin: 0 0 28px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-author { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose-gold); font-weight: 600; }

/* foundation/journey/tools cards on index */
.toc-section { margin: 56px 0 32px; }
.toc-section-title {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px;
}
.toc-section-title h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--soft-black);
  margin: 0;
}
.toc-section-title .badge {
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--rose-gold);
  border-radius: 999px;
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px dotted var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: padding 0.2s, color 0.2s;
}
.toc-list-item:hover { padding-left: 12px; color: var(--soft-black); text-decoration: none; }
.toc-list-item:hover .toc-list-title { color: var(--rose-gold); }
.toc-list-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  color: var(--rose-gold);
  text-align: center;
}
.toc-list-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--soft-black);
  transition: color 0.18s;
}
.toc-list-meta {
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--soft-black-faint); font-weight: 500;
}
.toc-list-meta.is-done { color: var(--rose-gold); }
.toc-list-meta.is-done::before { content: '✓  '; }
.toc-list-meta.is-interactive::after { content: '  ⤵'; color: var(--rose-gold); }

/* sticky save-state hint */
.save-hint {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(183, 110, 121, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose-gold); font-weight: 600;
}
.save-hint svg { width: 13px; height: 13px; }
