/* ─────────────────────────────────────────
   SaaSBox — tool.css
   Dynamic tool page styles
───────────────────────────────────────── */

.tool-main {
  min-height: 100vh;
  background-color: #0a0a0a;
  padding: 88px 40px 60px;
}

.hidden { display: none !important; }

/* ── LOADING ── */
.tool-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

/* ── HEADER ── */
.tool-header {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e1e1e;
}
.tool-back {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.tool-back:hover { color: #f5c400; }
.tool-category {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 12px;
}
.tool-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 2px;
  line-height: 1;
  color: #ede8dc;
  margin-bottom: 12px;
}
.tool-desc {
  font-size: 15px;
  font-weight: 500;
  color: #aaa;
  line-height: 1.7;
  max-width: 640px;
}

/* ── GRID LAYOUT ── */
.tool-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}
.tool-col {
  background-color: #0d0d0d;
  border: 1px solid #1e1e1e;
  padding: 28px;
}
.tool-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e1e1e;
}

/* ── INPUT FORM ── */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.tool-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-field-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}
.tool-field input,
.tool-field textarea,
.tool-field select {
  background-color: #0a0a0a;
  border: 1px solid #2a2a2a;
  padding: 12px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #ede8dc;
  outline: none;
  transition: border-color 0.2s;
  font-weight: 500;
  width: 100%;
}
.tool-field input::placeholder,
.tool-field textarea::placeholder { color: #555; }
.tool-field input:focus,
.tool-field textarea:focus,
.tool-field select:focus { border-color: #f5c400; }
.tool-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}
.tool-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.tool-run-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: #f5c400;
  color: #0a0a0a;
  padding: 16px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.2s, transform 0.2s;
}
.tool-run-btn:hover:not(:disabled) {
  background-color: #e85d04;
  color: #ede8dc;
  transform: translateY(-1px);
}
.tool-run-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tool-run-btn .btn-loading { display: none; }
.tool-run-btn.loading .btn-text { display: none; }
.tool-run-btn.loading .btn-loading { display: inline; }

.tool-error {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #e85d04;
  margin-top: 14px;
  min-height: 14px;
}
.tool-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #666;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e1e1e;
}
.tool-meta strong { color: #f5c400; font-weight: 500; }

/* ── OUTPUT AREA ── */
.tool-output { min-height: 400px; }
.output-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px dashed #1e1e1e;
  text-align: center;
  padding: 40px;
}
.output-empty-icon {
  font-size: 24px;
  color: #2a2a2a;
}
.output-empty-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #666;
  line-height: 1.8;
}

/* ── OUTPUT COMMON ── */
.out-section { margin-bottom: 24px; }
.out-section:last-child { margin-bottom: 0; }
.out-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.out-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 18px;
}

/* ── OUTPUT: MACRO TABLE ── */
.macro-total {
  background-color: #f5c400;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.macro-total-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
}
.macro-total-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #0a0a0a;
  line-height: 1;
}
.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.macro-bar {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 14px;
  align-items: center;
}
.macro-bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #aaa;
  text-transform: uppercase;
}
.macro-bar-track { height: 10px; background-color: #1a1a1a; }
.macro-bar-fill { height: 100%; background-color: #f5c400; }
.macro-bar-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #ede8dc;
  text-align: right;
}
.macro-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.macro-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}
.macro-item-name { color: #ccc; }
.macro-item-cal { color: #f5c400; }
.macro-note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #666;
  margin-top: 16px;
  line-height: 1.6;
  font-style: italic;
}

/* ── OUTPUT: BULLET CARDS ── */
.bullet-list { display: flex; flex-direction: column; gap: 12px; }
.bullet-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 16px;
  border-left: 3px solid #f5c400;
}
.bullet-num {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #f5c400;
  margin-bottom: 8px;
}
.bullet-text {
  font-size: 14px;
  color: #ede8dc;
  line-height: 1.6;
  margin-bottom: 10px;
}
.bullet-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bullet-kw {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  padding: 3px 7px;
  border: 1px solid #2a2a2a;
}
.tip-card {
  background-color: rgba(245,196,0,0.05);
  border: 1px solid rgba(245,196,0,0.2);
  padding: 14px 16px;
  margin-top: 16px;
}
.tip-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #f5c400;
  margin-bottom: 6px;
}
.tip-text { font-size: 14px; color: #1a1a1a; line-height: 1.6; font-weight: 500; }

/* ── OUTPUT: COVER LETTER ── */
.cover-letter {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #ede8dc;
  white-space: pre-wrap;
}
.cover-subject {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #f5c400;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #1e1e1e;
  text-transform: uppercase;
}

/* ── OUTPUT: HOOK CARDS ── */
.hook-list { display: flex; flex-direction: column; gap: 10px; }
.hook-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 14px 16px;
}
.hook-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hook-angle { color: #f5c400; }
.hook-platform { color: #888; }
.hook-text {
  font-size: 14px;
  color: #ede8dc;
  line-height: 1.5;
  margin-bottom: 8px;
}
.hook-chars {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #666;
}

/* ── OUTPUT: REPLY CARDS ── */
.reply-list { display: flex; flex-direction: column; gap: 14px; }
.reply-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 18px;
}
.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
}
.reply-tone {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5c400;
}
.reply-words {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #666;
}
.reply-subject {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 10px;
}
.reply-body {
  font-size: 13px;
  color: #ede8dc;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ── OUTPUT: RESPONSE CARDS ── */
.response-summary {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.response-summary-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 6px;
}
.response-summary-text {
  font-size: 13px;
  color: #ede8dc;
  line-height: 1.6;
}
.response-sentiment {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e85d04;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1px solid #e85d04;
}
.response-card { margin-bottom: 14px; }
.response-strategy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-style: italic;
  color: #888;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1e1e1e;
}

/* ── OUTPUT: TRAINING CALENDAR ── */
.training-summary {
  background-color: rgba(245,196,0,0.05);
  border-left: 3px solid #f5c400;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
}
.training-mileage {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #f5c400;
  display: inline-block;
  margin-right: 8px;
}
.training-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.training-day {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 14px;
  align-items: center;
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 12px 14px;
}
.training-day-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5c400;
}
.training-day-workout {
  font-size: 13px;
  color: #ede8dc;
  line-height: 1.5;
}
.training-day-workout small {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}
.training-day-effort {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: right;
  color: #888;
}
.training-day-effort.hard { color: #e85d04; }
.training-day-effort.rest { color: #4a8a4a; }

/* ── OUTPUT: STORY CARD ── */
.story-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 32px;
}
.story-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1.5px;
  color: #f5c400;
  margin-bottom: 8px;
}
.story-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 24px;
}
.story-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #ccc;
  white-space: pre-wrap;
}

/* ── OUTPUT: COMPARISON TABLE ── */
.comparison-question {
  background-color: rgba(245,196,0,0.05);
  border-left: 3px solid #f5c400;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #ede8dc;
  line-height: 1.6;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.compare-col {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 18px;
}
.compare-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #f5c400;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e1e;
}
.compare-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
}
.compare-section-label.pros { color: #4a8a4a; }
.compare-section-label.cons { color: #e85d04; }
.compare-list { list-style: none; padding: 0; }
.compare-list li {
  font-size: 13px;
  color: #ccc;
  padding: 6px 0 6px 14px;
  position: relative;
  line-height: 1.5;
}
.compare-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 8px;
  color: #555;
}
.disclaimer {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #555;
  font-style: italic;
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed #1e1e1e;
  line-height: 1.6;
}

/* ── OUTPUT: READING CARD (stress relief) ── */
.reading-card {
  background-color: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 28px;
}
.reading-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: #f5c400;
  margin-bottom: 6px;
}
.reading-duration {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 20px;
}
.reading-intro {
  font-size: 15px;
  color: #ede8dc;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e1e1e;
}
.reading-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.reading-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-bullet {
  width: 24px;
  height: 24px;
  background-color: #f5c400;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body { flex: 1; }
.step-instr {
  font-size: 14px;
  color: #ede8dc;
  line-height: 1.6;
  margin-bottom: 4px;
}
.step-cue {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #888;
  font-style: italic;
}
.step-time {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #f5c400;
  margin-top: 4px;
}
.reading-closing {
  background-color: rgba(245,196,0,0.05);
  border-left: 3px solid #f5c400;
  padding: 14px 16px;
  font-size: 14px;
  color: #ede8dc;
  line-height: 1.7;
  font-style: italic;
}

/* ── COPY BUTTON ── */
.copy-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 1px solid #2a2a2a;
  color: #888;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: #f5c400; color: #f5c400; }
.copy-btn.copied { border-color: #4a8a4a; color: #4a8a4a; }

/* ── ERROR STATE ── */
.tool-error-state {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  padding: 40px;
}
.tool-error-state h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #ede8dc;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.tool-error-state p {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── LIGHT MODE ── */
body.light-mode .tool-main { background-color: #f5f0e8; }
body.light-mode .tool-col,
body.light-mode .out-card,
body.light-mode .bullet-card,
body.light-mode .hook-card,
body.light-mode .reply-card,
body.light-mode .training-day,
body.light-mode .story-card,
body.light-mode .reading-card,
body.light-mode .compare-col,
body.light-mode .cover-letter,
body.light-mode .response-summary,
body.light-mode .macro-item {
  background-color: #ede8dc;
  border-color: #ccc;
}
body.light-mode .tool-name { color: #111; }
body.light-mode .tool-desc { color: #555; }
body.light-mode .tool-header { border-bottom-color: #ccc; }
body.light-mode .tool-back { color: #444; font-weight: 600; }
body.light-mode .tool-back:hover { color: #111; }
body.light-mode .tool-category { color: #8a6d00; font-weight: 700; }
body.light-mode .tool-col-label,
body.light-mode .output-empty-text,
body.light-mode .loading-text { color: #888; }
body.light-mode .tool-field input,
body.light-mode .tool-field textarea,
body.light-mode .tool-field select {
  background-color: #f5f0e8;
  border-color: #bbb;
  color: #111;
}
body.light-mode .bullet-text,
body.light-mode .hook-text,
body.light-mode .reply-body,
body.light-mode .response-summary-text,
body.light-mode .story-text,
body.light-mode .reading-intro,
body.light-mode .step-instr,
body.light-mode .reading-closing,
body.light-mode .training-day-workout,
body.light-mode .comparison-question,
body.light-mode .cover-letter,
body.light-mode .compare-list li { color: #222; }
body.light-mode .output-empty { border-color: #ccc; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-main { padding: 80px 16px 40px; }
  .tool-col { padding: 20px; }
}

/* ── GENERATING / LOADING ANIMATION ── */
.tool-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.tg-progress {
  width: 100%;
  max-width: 440px;
  height: 6px;
  background-color: rgba(245, 196, 0, 0.12);
  border-radius: 3px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.tg-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #f5c400;
  border-radius: 3px;
  transition: width 0.2s linear;
}
.tg-progress-bar.holding {
  animation: tg-pulse 1.4s ease-in-out infinite;
}
@keyframes tg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.tg-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: #f5c400;
  margin-bottom: 8px;
}
.tg-dots span {
  display: inline-block;
  animation: tg-blink 1.4s infinite both;
}
.tg-dots span:nth-child(2) { animation-delay: 0.2s; }
.tg-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tg-blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
.tg-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #777;
}
body.light-mode .tg-sub { color: #888; }

/* ── ERROR STATE IN OUTPUT ── */
.tool-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
}
.tes-icon {
  width: 56px;
  height: 56px;
  border: 2px solid #e85d04;
  color: #e85d04;
  border-radius: 50%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  line-height: 1;
}
.tes-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: #e85d04;
  margin-bottom: 12px;
}
.tes-msg {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: #333;
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.tes-hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
}

/* ── DID YOU KNOW PROMO (loading state cross-promo) ── */
.tg-promo {
  margin-top: 32px;
  max-width: 440px;
  padding: 20px 24px;
  background-color: rgba(245, 196, 0, 0.06);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-left: 3px solid #f5c400;
  text-align: left;
  animation: tg-fade-in 0.6s ease;
}
@keyframes tg-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tg-promo-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 8px;
}
.tg-promo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}
.tg-promo-text strong {
  font-weight: 600;
  color: #111;
}
.tg-promo-desc {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 8px;
}
.tg-promo-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5c400;
  text-decoration: none;
  font-weight: 500;
}
.tg-promo-link:hover {
  color: #e85d04;
}

/* ── OUTPUT: TASK CHECKLIST (Task Prioritizer) ── */
.checklist-context {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #333;
  font-style: italic;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background-color: rgba(245, 196, 0, 0.06);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 24px;
}
.checklist-progress-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  font-weight: 600;
  white-space: nowrap;
}
.checklist-progress-bar {
  flex: 1;
  height: 6px;
  background-color: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.checklist-progress-fill {
  height: 100%;
  background-color: #f5c400;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.checklist-reset-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #666;
  background: transparent;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checklist-reset-btn:hover {
  border-color: #e85d04;
  color: #e85d04;
}

.checklist-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist-group {
  background-color: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.checklist-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: rgba(0,0,0,0.04);
  border-left: 3px solid #888;
}
.checklist-group-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
}
.checklist-group-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #666;
}

.checklist-tasks {
  display: flex;
  flex-direction: column;
}
.checklist-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.checklist-task:last-child { border-bottom: none; }
.checklist-task:hover { background-color: rgba(245, 196, 0, 0.04); }

.checklist-task input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #f5c400;
  flex-shrink: 0;
}

.checklist-task-text {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

.checklist-task-tags {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.checklist-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid rgba(0,0,0,0.12);
  color: #555;
  background-color: rgba(0,0,0,0.02);
  white-space: nowrap;
}
.checklist-tag.effort {
  border-color: rgba(245, 196, 0, 0.4);
  color: #8a6d00;
  background-color: rgba(245, 196, 0, 0.08);
}

.checklist-task.is-done .checklist-task-text {
  text-decoration: line-through;
  color: #999;
  opacity: 0.6;
}
.checklist-task.is-done .checklist-task-tags {
  opacity: 0.4;
}

/* ── OUTPUT: STANDUP UPDATE (Standup Update Generator) ── */
.standup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  gap: 16px;
  flex-wrap: wrap;
}
.standup-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
}
.standup-copy-all {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  background-color: #f5c400;
  color: #0a0a0a;
  border: 1px solid #f5c400;
  font-weight: 600;
  cursor: pointer;
}
.standup-copy-all:hover {
  background-color: #0a0a0a;
  color: #f5c400;
}
.standup-copy-all.copied {
  background-color: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.standup-section {
  margin-bottom: 24px;
}
.standup-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-left: 3px solid #888;
  background-color: rgba(0,0,0,0.03);
}
.standup-section-header.yesterday { border-left-color: #5b8def; }
.standup-section-header.today { border-left-color: #f5c400; }
.standup-section-header.blockers { border-left-color: #e85d04; }

.standup-icon {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  width: 18px;
  text-align: center;
}
.standup-section-header.yesterday .standup-icon { color: #5b8def; }
.standup-section-header.today .standup-icon { color: #b88a00; }
.standup-section-header.blockers .standup-icon { color: #e85d04; }

.standup-section-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
}

.standup-list {
  list-style: none;
  padding: 0 0 0 14px;
  margin: 0;
}
.standup-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  padding: 6px 0 6px 16px;
  position: relative;
}
.standup-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #f5c400;
  font-weight: 700;
}
.standup-list.blockers-list li::before {
  color: #e85d04;
}

/* ── OUTPUT: PRICING COPY (Pricing Page Copy Generator) ── */
.pricing-copy-hero {
  text-align: center;
  padding: 24px 16px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.pricing-copy-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 12px;
}
.pricing-copy-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 8px;
}
.pricing-copy-subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}
.pricing-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pricing-copy-card {
  background-color: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-copy-card.featured {
  background-color: rgba(245,196,0,0.08);
  border-color: #f5c400;
}
.pcc-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background-color: #f5c400;
  color: #0a0a0a;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  font-weight: 600;
}
.pcc-tier {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 12px;
}
.pcc-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}
.pcc-per {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-top: 4px;
  margin-bottom: 12px;
}
.pcc-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 14px;
  font-style: italic;
}
.pcc-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}
.pcc-feats li {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #333;
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.4;
}
.pcc-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f5c400;
  font-weight: 700;
}
.pcc-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0a0a;
  font-weight: 600;
  padding: 10px;
  background-color: rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.15);
}

/* ── OUTPUT: EXPENSE TABLE (Expense Categorizer) ── */
.expense-summary {
  text-align: center;
  padding: 20px 16px;
  background-color: rgba(245,196,0,0.06);
  border: 1px solid rgba(245,196,0,0.2);
  margin-bottom: 24px;
}
.expense-total-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.expense-total-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 6px;
}
.expense-total-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #666;
}

.expense-bars {
  margin-bottom: 28px;
}
.expense-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.expense-bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
}
.expense-bar-track {
  height: 14px;
  background-color: rgba(0,0,0,0.06);
  position: relative;
}
.expense-bar-fill {
  height: 100%;
  background-color: #f5c400;
  transition: width 0.6s ease;
}
.expense-bar-amt {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
}

.expense-category {
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  background-color: rgba(0,0,0,0.02);
}
.expense-cat-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.expense-cat-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
}
.expense-cat-total {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 600;
}
.expense-items {
  padding: 6px 0;
}
.expense-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1a1a1a;
}
.expense-item:last-child { border-bottom: none; }
.expense-item-merchant { color: #1a1a1a; }
.expense-item-amount {
  font-family: 'DM Mono', monospace;
  color: #555;
}

/* ── FIX: DARKEN ALL SECONDARY TEXT IN LIGHT MODE ── */
body.light-mode .training-day-workout small,
body.light-mode .training-day-effort,
body.light-mode .training-day-name,
body.light-mode .day-notes,
body.light-mode .day-effort {
  color: #333 !important;
}
body.light-mode .training-day-effort.hard { color: #c44a00 !important; }
body.light-mode .training-day-effort.rest { color: #2d6e2d !important; }

/* Generic secondary text darkening */
body.light-mode .out-label,
body.light-mode .bullet-num,
body.light-mode .hook-meta,
body.light-mode .reply-meta,
body.light-mode .toc-input-snippet,
body.light-mode .activity-input,
body.light-mode .activity-date,
body.light-mode .day-label,
body.light-mode .expense-total-sub,
body.light-mode .expense-item-amount,
body.light-mode .pcc-per,
body.light-mode .pcc-tier {
  color: #444 !important;
}

/* Tool field labels */
body.light-mode .tool-field-label {
  color: #333 !important;
}

/* ── SUBSCRIPTION SAVINGS TRACKER (Tool 24) ── */
.savings-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.savings-block {
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  background-color: rgba(0,0,0,0.02);
}
.savings-block.savings-saved {
  background-color: rgba(74, 138, 74, 0.08);
  border-color: rgba(74, 138, 74, 0.3);
}
.savings-block.savings-spending {
  background-color: rgba(232, 93, 4, 0.06);
  border-color: rgba(232, 93, 4, 0.25);
}
.savings-block.savings-total {
  background-color: rgba(245, 196, 0, 0.1);
  border-color: rgba(245, 196, 0, 0.4);
}
.savings-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
}
.savings-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}
.savings-block.savings-saved .savings-amount { color: #2d6e2d; }
.savings-block.savings-spending .savings-amount { color: #c44a00; }
.savings-block.savings-total .savings-amount { color: #1a1a1a; }
.savings-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #555;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .savings-tracker { grid-template-columns: 1fr; }
}

/* ── PRICING COPY: top action bar ── */
.pricing-copy-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background-color: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  flex-wrap: wrap;
}
.pricing-copy-hint {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  min-width: 240px;
}
