/**
 * Finding With Kevin — Journal Styles
 *
 * Mobile-first responsive CSS for all journal pages.
 * Uses the same design tokens as theme.css (cream/brown/gold palette).
 * Includes dark mode variant for Night Owl users.
 */

/* ===== Shared Variables ===== */
:root {
  --j-bg: var(--cream, #FAF6F1);
  --j-bg-card: #FFFFFF;
  --j-bg-input: #FDFCFA;
  --j-text: var(--brown, #2C1810);
  --j-text-muted: var(--brown-light, #8B7355);
  --j-accent: var(--gold, #B8860B);
  --j-accent-light: var(--gold-light, #D4A574);
  --j-accent-glow: rgba(184, 134, 11, 0.08);
  --j-border: rgba(212, 165, 116, 0.2);
  --j-border-focus: var(--gold, #B8860B);
  --j-shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.04), 0 1px 2px rgba(44, 24, 16, 0.03);
  --j-shadow-md: 0 4px 12px rgba(44, 24, 16, 0.06), 0 2px 4px rgba(44, 24, 16, 0.04);
  --j-shadow-focus: 0 0 0 3px rgba(184, 134, 11, 0.12);
  --j-success: #4A7C59;
  --j-error: #A94442;
  --j-warning: #8A6D3B;
  --j-radius: 0.75rem;
  --j-radius-lg: 1rem;
  --j-max-width: 40rem;
  --j-section-gap: 2.25rem;
}

/* ===== Seasonal Accents ===== */
.season-spring {
  --j-season-accent: #4A7C59;
  --j-season-accent-light: #7BAF8A;
  --j-season-accent-pale: #E8F2EB;
  --j-season-glow: rgba(74, 124, 89, 0.1);
  --j-season-glow-strong: rgba(74, 124, 89, 0.18);
  --j-season-gradient: linear-gradient(135deg, #E8F2EB 0%, #FAF6F1 100%);
  --j-season-gradient-card: linear-gradient(160deg, rgba(123, 175, 138, 0.06) 0%, transparent 60%);
  --j-season-border: rgba(74, 124, 89, 0.2);
}

.season-summer {
  --j-season-accent: #B87A2B;
  --j-season-accent-light: #D4A05C;
  --j-season-accent-pale: #F5EDDF;
  --j-season-glow: rgba(184, 122, 43, 0.1);
  --j-season-glow-strong: rgba(184, 122, 43, 0.18);
  --j-season-gradient: linear-gradient(135deg, #F5EDDF 0%, #FAF6F1 100%);
  --j-season-gradient-card: linear-gradient(160deg, rgba(212, 160, 92, 0.06) 0%, transparent 60%);
  --j-season-border: rgba(184, 122, 43, 0.2);
}

.season-autumn {
  --j-season-accent: #8B4A2B;
  --j-season-accent-light: #B8725A;
  --j-season-accent-pale: #F2E8E3;
  --j-season-glow: rgba(139, 74, 43, 0.1);
  --j-season-glow-strong: rgba(139, 74, 43, 0.18);
  --j-season-gradient: linear-gradient(135deg, #F2E8E3 0%, #FAF6F1 100%);
  --j-season-gradient-card: linear-gradient(160deg, rgba(184, 114, 90, 0.06) 0%, transparent 60%);
  --j-season-border: rgba(139, 74, 43, 0.2);
}

.season-winter {
  --j-season-accent: #5A7B94;
  --j-season-accent-light: #89A8BE;
  --j-season-accent-pale: #E6EDF2;
  --j-season-glow: rgba(90, 123, 148, 0.1);
  --j-season-glow-strong: rgba(90, 123, 148, 0.18);
  --j-season-gradient: linear-gradient(135deg, #E6EDF2 0%, #FAF6F1 100%);
  --j-season-gradient-card: linear-gradient(160deg, rgba(137, 168, 190, 0.06) 0%, transparent 60%);
  --j-season-border: rgba(90, 123, 148, 0.2);
}

/* ── Seasonal page background ── */
/* journal.css only loads on journal pages, so this is already scoped */
body.season-spring {
  background: linear-gradient(170deg, #D5E8D4 0%, #E8F2E8 30%, #FAF6F1 70%) !important;
  background-attachment: fixed !important;
}
body.season-summer {
  background: linear-gradient(170deg, #EDE0C8 0%, #F2EADB 30%, #FAF6F1 70%) !important;
  background-attachment: fixed !important;
}
body.season-autumn {
  background: linear-gradient(170deg, #E6D5CA 0%, #EDE0D8 30%, #FAF6F1 70%) !important;
  background-attachment: fixed !important;
}
body.season-winter {
  background: linear-gradient(170deg, #D2DEE8 0%, #E0E8EF 30%, #FAF6F1 70%) !important;
  background-attachment: fixed !important;
}

/* ── Seasonal header ── */
.journal-entry .journal-header {
  border-bottom: 1px solid var(--j-season-border, var(--j-border));
}

.journal-entry .journal-title .journal-icon {
  color: var(--j-season-accent, var(--j-accent));
}

/* Season label in header */
.journal-season {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--j-season-accent, var(--j-text-muted));
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  opacity: 0.85;
}

.journal-entry .journal-streak {
  background-color: var(--j-season-glow-strong, var(--j-accent-glow));
  color: var(--j-season-accent, var(--j-accent));
  border: 1px solid var(--j-season-border, transparent);
}

/* Seasonal divider between sections and closing thought */
.journal-seasonal-divider {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  opacity: 0.5;
  letter-spacing: 0.5em;
  color: var(--j-season-accent-light, var(--j-accent-light));
}

.journal-seasonal-divider span {
  display: inline-block;
  position: relative;
}

.journal-seasonal-divider span::before,
.journal-seasonal-divider span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 1px;
  background-color: var(--j-season-border, var(--j-border));
}

.journal-seasonal-divider span::before {
  right: calc(100% + 0.75rem);
}

.journal-seasonal-divider span::after {
  left: calc(100% + 0.75rem);
}

/* ── Weekly Quote from the Book ── */
.journal-weekly-quote {
  text-align: center;
  padding: 1.25rem 1.5rem;
  margin-bottom: var(--j-section-gap);
  position: relative;
}

.journal-weekly-quote blockquote {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--j-text);
  max-width: 28rem;
  margin: 0 auto 0.5rem;
  border: none;
  padding: 0;
  position: relative;
}

.journal-weekly-quote blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: -0.75rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--j-season-accent-light, var(--j-accent-light));
  opacity: 0.3;
  font-family: Georgia, serif;
}

.journal-weekly-quote cite {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--j-season-accent, var(--j-text-muted));
  letter-spacing: 0.03em;
  opacity: 0.7;
}

/* ── Seasonal mood selector ── */
.journal-entry .mood-option {
  border-color: var(--j-season-border, var(--j-border));
}

.journal-entry .mood-option:hover {
  border-color: var(--j-season-accent-light, var(--j-accent-light));
  background-color: var(--j-season-glow, rgba(184, 134, 11, 0.06));
}

.journal-entry .mood-option:has(input:checked) {
  background-color: var(--j-season-accent, var(--j-accent));
  border-color: var(--j-season-accent, var(--j-accent));
  box-shadow: 0 3px 12px var(--j-season-glow-strong, rgba(184, 134, 11, 0.3));
}

.journal-entry .mood-label {
  color: var(--j-season-accent, var(--j-text-muted));
}

/* ── Seasonal section cards ── */
.journal-entry .journal-section {
  border-left: 3px solid var(--j-season-accent-light, var(--j-accent-light));
  background: var(--j-season-gradient-card, none), var(--j-bg-card);
}

.journal-entry .journal-section:focus-within {
  border-left-color: var(--j-season-accent, var(--j-accent));
  box-shadow: 0 4px 16px var(--j-season-glow, rgba(44, 24, 16, 0.06));
}

.journal-entry .section-name {
  color: var(--j-season-accent, var(--j-accent));
}

.journal-entry .section-prompts {
  border-left: 2px solid var(--j-season-glow-strong, var(--j-accent-glow));
}

.journal-entry .prompt-anchor {
  color: var(--j-season-accent, var(--j-text));
}

/* ── Seasonal textareas ── */
.journal-entry .journal-textarea {
  border-color: var(--j-season-border, var(--j-border));
}

.journal-entry .journal-textarea:focus {
  border-color: var(--j-season-accent, var(--j-border-focus));
  box-shadow: 0 0 0 3px var(--j-season-glow, rgba(184, 134, 11, 0.12));
}

/* ── Seasonal closing thought ── */
.journal-entry .journal-closing {
  background: var(--j-season-gradient-card, none), var(--j-bg-card);
  border-color: var(--j-season-border, var(--j-border));
}

/* Use seasonal icon from data attribute instead of quote mark */
.journal-entry .journal-closing::before {
  content: attr(data-season-icon);
  color: var(--j-season-accent-light, var(--j-accent-light));
  opacity: 0.4;
  font-size: 2rem;
  top: 0.5rem;
}

.journal-entry .closing-label {
  color: var(--j-season-accent, var(--j-text-muted));
}

/* ── Seasonal save button ── */
.journal-entry .journal-actions .btn-primary {
  background: var(--j-season-accent, var(--j-accent));
  box-shadow: 0 3px 14px var(--j-season-glow-strong, rgba(184, 134, 11, 0.25));
}

.journal-entry .journal-actions .btn-primary:hover {
  background: var(--j-season-accent-light, var(--j-accent-light));
  box-shadow: 0 5px 20px var(--j-season-glow-strong, rgba(184, 134, 11, 0.3));
}

/* ── Seasonal bottom nav ── */
.journal-entry .journal-nav a:hover {
  color: var(--j-season-accent, var(--j-accent));
  border-color: var(--j-season-border, var(--j-border));
  background-color: var(--j-season-glow, var(--j-accent-glow));
}

/* ── Seasonal banner ── */
.journal-entry .journal-banner {
  background-color: var(--j-season-glow, var(--j-accent-glow));
  border-color: var(--j-season-border, var(--j-border));
}

.journal-entry .banner-link {
  color: var(--j-season-accent, var(--j-accent));
}

/* Seasonal accent on reflection and lookback pages too */

.journal-reflect .reflect-prompt {
  border-left-color: var(--j-season-accent-light, var(--j-accent-light));
  background: var(--j-season-gradient-card, none), var(--j-bg-card);
}

.journal-reflect .reflect-prompt:focus-within {
  border-left-color: var(--j-season-accent, var(--j-accent));
  box-shadow: 0 4px 16px var(--j-season-glow, rgba(44, 24, 16, 0.06));
}

.journal-reflect .reflect-question {
  color: var(--j-season-accent, var(--j-text));
}

.journal-reflect .journal-actions .btn-primary {
  background: var(--j-season-accent, var(--j-accent));
}

.journal-reflect .reflect-textarea:focus {
  border-color: var(--j-season-accent, var(--j-border-focus));
  box-shadow: 0 0 0 3px var(--j-season-glow, rgba(184, 134, 11, 0.12));
}

.journal-reflect .journal-nav a:hover {
  color: var(--j-season-accent, var(--j-accent));
  background-color: var(--j-season-glow, var(--j-accent-glow));
}

/* Seasonal on settings page */
.journal-settings .settings-section {
  border-color: var(--j-season-border, var(--j-border));
}

.journal-settings .stat-value {
  color: var(--j-season-accent, var(--j-accent));
}

.journal-settings .form-input:focus,
.journal-settings .form-select:focus {
  border-color: var(--j-season-accent, var(--j-border-focus));
  box-shadow: 0 0 0 3px var(--j-season-glow, rgba(184, 134, 11, 0.12));
}

.journal-settings .btn-primary {
  background: var(--j-season-accent, var(--j-accent));
}

.journal-settings .journal-nav a:hover {
  color: var(--j-season-accent, var(--j-accent));
  background-color: var(--j-season-glow, var(--j-accent-glow));
}

/* Seasonal on welcome page */
.journal-welcome .welcome-step {
  border-left-color: var(--j-season-accent-light, var(--j-accent-light));
}

.journal-welcome .welcome-step-num {
  background-color: var(--j-season-accent, var(--j-accent));
  box-shadow: 0 2px 6px var(--j-season-glow-strong, rgba(184, 134, 11, 0.25));
}

.journal-welcome .welcome-sections-list li {
  background-color: var(--j-season-glow, var(--j-accent-glow));
}

.journal-welcome .welcome-setup {
  border-color: var(--j-season-border, var(--j-border));
}

.journal-welcome .btn-primary {
  background: var(--j-season-accent, var(--j-accent));
}

/* Seasonal on history page */
.journal-history .heatmap-filled {
  background-color: var(--j-season-accent, var(--j-accent));
}

.journal-history .heatmap-today {
  outline-color: var(--j-season-accent, var(--j-accent));
}

.journal-history .history-stats .stat {
  background-color: var(--j-season-glow-strong, var(--j-accent-glow));
  color: var(--j-season-accent, var(--j-accent));
}

.journal-history .entry-list-item:hover {
  border-color: var(--j-season-accent-light, var(--j-accent-light));
}

.journal-history .journal-nav a:hover {
  color: var(--j-season-accent, var(--j-accent));
  background-color: var(--j-season-glow, var(--j-accent-glow));
}

/* Seasonal on lookback page */
.journal-lookback .lookback-period {
  border-left-color: var(--j-season-accent-light, var(--j-accent-light));
  background: var(--j-season-gradient-card, none), var(--j-bg-card);
}

.journal-lookback .lookback-label {
  color: var(--j-season-accent, var(--j-accent));
}

.journal-lookback .lookback-section-name {
  color: var(--j-season-accent, var(--j-accent));
}


.journal-history .heatmap-filled {
  background-color: var(--j-season-accent, var(--j-accent));
}

.journal-history .heatmap-today {
  outline-color: var(--j-season-accent, var(--j-accent));
}

.journal-history .history-stats .stat {
  background-color: var(--j-season-glow-strong, var(--j-accent-glow));
  color: var(--j-season-accent, var(--j-accent));
}

/* ===== Dark Mode ===== */
.dark-mode {
  --j-bg: #1A1A1A;
  --j-bg-card: #242424;
  --j-bg-input: #2A2A2A;
  --j-text: #E8E0D8;
  --j-text-muted: #A89880;
  --j-accent-glow: rgba(212, 165, 116, 0.1);
  --j-border: rgba(168, 152, 128, 0.15);
  --j-border-focus: var(--gold-light, #D4A574);
  --j-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --j-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --j-shadow-focus: 0 0 0 3px rgba(212, 165, 116, 0.15);
  --j-success: #6B9E7A;
  --j-error: #D4726A;
  --j-warning: #C4A86C;
}

html.dark-mode body {
  background-color: var(--j-bg);
  color: var(--j-text);
}

/* ===== Shared Layout ===== */
.journal-entry,
.journal-history,
.journal-reflect,
.journal-welcome,
.journal-lookback,
.journal-settings,
.journal-landing,
.journal-cancel {
  max-width: var(--j-max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--j-text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--j-accent);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
  background-color: #A07A0A;
}

.btn-secondary {
  background-color: transparent;
  color: var(--j-text-muted);
  border: 1.5px solid var(--j-border);
}

.btn-secondary:hover {
  border-color: var(--j-accent-light);
  color: var(--j-text);
  background-color: var(--j-accent-glow);
}

.btn-danger {
  background-color: var(--j-error);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(169, 68, 66, 0.2);
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-large {
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== Journal Header ===== */
.journal-header {
  margin-bottom: var(--j-section-gap);
  text-align: center;
  padding-bottom: 1.5rem;
}

.journal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--j-text);
}

.journal-title h1 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.journal-icon {
  font-size: 1.3em;
  opacity: 0.85;
}

.journal-date {
  font-size: 1rem;
  color: var(--j-text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.journal-streak {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--j-accent);
  background-color: var(--j-accent-glow);
  padding: 0.25rem 0.9rem;
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Save Status ===== */
.journal-save-status {
  font-size: 0.8rem;
  min-height: 1.4em;
  text-align: center;
  margin-top: 0.75rem;
  transition: color 0.3s, opacity 0.3s;
  letter-spacing: 0.02em;
}

.status-saving { color: var(--j-text-muted); font-style: italic; }
.status-saved  { color: var(--j-success); }
.status-error  { color: var(--j-error); font-weight: 600; }
.status-offline { color: var(--j-warning); }
.status-info   { color: var(--j-text-muted); }

/* ===== Read-Only Notice ===== */
.journal-readonly-notice {
  background-color: rgba(184, 134, 11, 0.08);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--j-text-muted);
  text-align: center;
}

.journal-readonly-notice .btn {
  margin-left: 0.5rem;
}

/* ===== Banner (reflection surfacing) ===== */
.journal-banner {
  background-color: var(--j-accent-glow);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 0.7rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: var(--j-shadow-sm);
}

.banner-link {
  color: var(--j-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.banner-link:hover {
  color: var(--j-text);
  text-decoration: underline;
}

/* ===== Mood Selector ===== */
.journal-mood {
  margin-bottom: var(--j-section-gap);
  text-align: center;
}

.mood-label {
  display: block;
  font-size: 0.8rem;
  color: var(--j-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mood-options {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mood-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  border-radius: 2rem;
  border: 1.5px solid var(--j-border);
  background-color: var(--j-bg-card);
  transition: all 0.2s ease;
  box-shadow: var(--j-shadow-sm);
}

.mood-option:hover {
  border-color: var(--j-accent-light);
  background-color: var(--j-accent-glow);
  transform: translateY(-1px);
  box-shadow: var(--j-shadow-md);
}

.mood-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mood-option:has(input:checked) {
  background-color: var(--j-accent);
  border-color: var(--j-accent);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
  transform: translateY(-1px);
}

.mood-option:has(input:checked) .mood-text {
  color: #FFF;
  font-weight: 600;
}

/* Fallback for browsers without :has() */
.mood-option input[type="radio"]:checked + .mood-text {
  color: #FFF;
  font-weight: 600;
}

.mood-text {
  font-size: 0.78rem;
  color: var(--j-text-muted);
  transition: color 0.15s;
  white-space: nowrap;
}

.journal-mood-readonly {
  margin-bottom: var(--j-section-gap);
  text-align: center;
}

.mood-value {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--j-accent);
  background-color: var(--j-accent-glow);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
}

/* ===== Journal Sections (Daily Entry) ===== */
.journal-sections {
  display: flex;
  flex-direction: column;
  gap: var(--j-section-gap);
}

.journal-section {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.journal-section:focus-within {
  box-shadow: var(--j-shadow-md);
  border-left-color: var(--j-accent);
}

.dark-mode .journal-section {
  background-color: var(--j-bg-card);
}

.section-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--j-accent);
  margin-bottom: 0.4rem;
}

.section-intro {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--j-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.section-prompts {
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--j-accent-glow);
  font-size: 0.9rem;
  line-height: 1.7;
}

.prompt-anchor {
  font-weight: 600;
  color: var(--j-text);
  display: block;
  margin-bottom: 0.3rem;
}

.section-prompts li {
  list-style: none;
  margin-bottom: 0.2rem;
  color: var(--j-text-muted);
}

.section-prompts p {
  margin-bottom: 0.2rem;
}

/* ===== Textareas ===== */
.journal-textarea,
.reflect-textarea {
  width: 100%;
  min-height: 9rem;
  padding: 1rem;
  border: 1.5px solid var(--j-border);
  border-radius: var(--j-radius);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--j-text);
  background-color: var(--j-bg-input);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.journal-textarea:focus,
.reflect-textarea:focus {
  outline: none;
  border-color: var(--j-border-focus);
  box-shadow: var(--j-shadow-focus);
}

.journal-textarea::placeholder,
.reflect-textarea::placeholder {
  color: var(--j-text-muted);
  opacity: 0.5;
  font-style: italic;
}

.journal-textarea:disabled,
.reflect-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--j-bg);
}

/* Read-only entry display */
.journal-response-readonly {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--j-text);
  padding: 0.5rem 0;
}

/* ===== Empty State ===== */
.journal-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--j-text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== Progressive Section Note ===== */
.journal-progressive-note {
  text-align: center;
  padding: 1rem;
  color: var(--j-text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== Closing Thought ===== */
.journal-closing {
  text-align: center;
  margin-top: calc(var(--j-section-gap) + 0.5rem);
  padding: 2rem 1.5rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  box-shadow: var(--j-shadow-sm);
  position: relative;
}

.journal-closing::before {
  content: '\201C';
  position: absolute;
  top: -0.1rem;
  left: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--j-accent-light);
  opacity: 0.4;
  font-family: Georgia, serif;
}

.closing-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--j-text-muted);
  margin-bottom: 0.75rem;
}

.closing-thought {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--j-text);
  max-width: 28rem;
  margin: 0 auto;
  border: none;
  padding: 0;
}

/* ===== Journal Actions ===== */
.journal-actions {
  text-align: center;
  margin-top: 2rem;
}

.journal-actions .btn {
  width: 100%;
  max-width: 20rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ===== Journal Nav (bottom) ===== */
.journal-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--j-border);
  font-size: 0.85rem;
}

.journal-nav a {
  color: var(--j-text-muted);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.journal-nav a:hover {
  color: var(--j-accent);
  border-color: var(--j-border);
  background-color: var(--j-accent-glow);
}

/* ===================================================================
   HISTORY PAGE
   =================================================================== */

.history-stats {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--j-section-gap);
}

.history-stats .stat {
  display: inline-block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--j-accent);
  background-color: var(--j-accent-glow);
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== Heat Map ===== */
.history-heatmap {
  margin-bottom: var(--j-section-gap);
  overflow-x: auto;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--j-shadow-sm);
}

.history-heatmap h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.heatmap-grid {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 0.75rem;
}

.heatmap-header {
  display: table-row;
  font-weight: 600;
  color: var(--j-text-muted);
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heatmap-header span {
  display: table-cell;
  padding: 0.2rem;
  text-align: center;
}

.heatmap-row {
  display: table-row;
}

.heatmap-cell {
  display: table-cell;
  width: 2.2rem;
  height: 2.2rem;
  text-align: center;
  vertical-align: middle;
  border-radius: var(--j-radius);
  font-size: 0.78rem;
  color: var(--j-text-muted);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.heatmap-cell:hover {
  transform: scale(1.1);
  box-shadow: var(--j-shadow-md);
}

.heatmap-empty {
  background-color: transparent;
}

.heatmap-filled {
  background-color: var(--j-accent);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.2);
}

.heatmap-filled a {
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 2.2rem;
}

.heatmap-today {
  outline: 2.5px solid var(--j-accent);
  outline-offset: 1px;
}

.heatmap-future {
  opacity: 0.25;
}

.heatmap-legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--j-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.heatmap-filled {
  line-height: normal;
}

/* ===== Entry List ===== */
.history-entries {
  margin-top: var(--j-section-gap);
}

.history-entries h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--j-text);
}

.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-list-item {
  display: block;
  padding: 0.85rem 1.25rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius);
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.entry-list-item:hover {
  box-shadow: var(--j-shadow-md);
  transform: translateY(-1px);
}

.entry-list-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.entry-list-date {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--j-text);
}

.entry-list-preview {
  font-size: 0.85rem;
  color: var(--j-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-style: italic;
}

/* ===================================================================
   REFLECTION PAGE
   =================================================================== */

.reflect-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.reflect-subtitle {
  font-size: 0.92rem;
  color: var(--j-text-muted);
  margin-bottom: 0.75rem;
}

.reflect-intro {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--j-text-muted);
  margin-bottom: var(--j-section-gap);
  line-height: 1.7;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.reflect-prompts {
  display: flex;
  flex-direction: column;
  gap: var(--j-section-gap);
}

.reflect-prompt {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.reflect-prompt:focus-within {
  box-shadow: var(--j-shadow-md);
  border-left-color: var(--j-accent);
}

.reflect-question {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--j-text);
}

.reflect-extra {
  margin-top: 0;
  border-left-color: var(--j-text-muted);
}

.reflect-extra-label {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

/* ===================================================================
   WELCOME / ONBOARDING PAGE
   =================================================================== */

.journal-welcome {
  text-align: center;
}

.welcome-hero {
  margin-bottom: calc(var(--j-section-gap) + 0.5rem);
  padding: 1rem 0 1.5rem;
}

.welcome-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.welcome-season-icon {
  display: block;
  font-size: 1.8rem;
  margin-top: 0.75rem;
  opacity: 0.6;
}

.welcome-hero p {
  font-size: 1.05rem;
  color: var(--j-text-muted);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.7;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: calc(var(--j-section-gap) + 0.5rem);
  text-align: left;
}

.welcome-step {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.welcome-step:hover {
  box-shadow: var(--j-shadow-md);
}

.welcome-step h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: inline;
}

.welcome-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: inline;
}

.welcome-step p {
  font-size: 0.92rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  margin-top: 0.3rem;
}

.welcome-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background-color: var(--j-accent);
  color: #FFF;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.6rem;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
}

.welcome-sections-list {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.welcome-sections-list li {
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  color: var(--j-text-muted);
  background-color: var(--j-accent-glow);
  border-radius: var(--j-radius);
  line-height: 1.5;
}

.welcome-sections-list li strong {
  color: var(--j-text);
}

/* Setup form */
.welcome-setup {
  margin-bottom: calc(var(--j-section-gap) + 0.5rem);
  text-align: left;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--j-shadow-md);
}

.welcome-setup h2 {
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.welcome-form {
  max-width: 22rem;
  margin: 0 auto;
}

.welcome-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.welcome-gentle-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--j-text-muted);
  margin-top: 1.5rem;
  text-align: center;
  line-height: 1.7;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.welcome-cta {
  margin-top: calc(var(--j-section-gap) + 0.5rem);
  padding-top: 1.5rem;
}

.welcome-cta h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* ===================================================================
   LOOKBACK PAGE
   =================================================================== */

.lookback-intro {
  font-size: 0.95rem;
  color: var(--j-text-muted);
  font-style: italic;
  text-align: center;
  margin-bottom: var(--j-section-gap);
  line-height: 1.7;
}

.lookback-journal {
  margin-bottom: 2.5rem;
}

.lookback-journal h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--j-border);
}

.lookback-period {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.lookback-period:hover {
  box-shadow: var(--j-shadow-md);
}

.lookback-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--j-accent);
  margin-bottom: 0.2rem;
}

.lookback-date {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  margin-bottom: 0.75rem;
}

.lookback-entry {
  padding-top: 0.75rem;
  border-top: 1px solid var(--j-border);
}

.lookback-section {
  margin-bottom: 0.85rem;
}

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

.lookback-section-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--j-accent);
  margin-bottom: 0.2rem;
}

.lookback-section p {
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.lookback-empty {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--j-text-muted);
  padding: 0.75rem 0;
  line-height: 1.7;
}

.lookback-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--j-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--j-accent-light);
  transition: border-color 0.2s;
}

.lookback-link:hover {
  border-color: var(--j-accent);
}

/* ===================================================================
   SETTINGS PAGE
   =================================================================== */

.settings-form {
  margin-bottom: var(--j-section-gap);
}

.settings-section {
  margin-bottom: 2rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--j-shadow-sm);
}

.settings-section h2 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--j-border);
}

/* ===== Form Elements (shared) ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--j-text);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--j-border);
  border-radius: var(--j-radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--j-text);
  background-color: var(--j-bg-input);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--j-border-focus);
  box-shadow: var(--j-shadow-focus);
}

.form-help {
  font-size: 0.8rem;
  color: var(--j-text-muted);
  margin-top: 0.25rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--j-accent);
}

.form-checkbox label {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 8rem;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.form-status.status-saved {
  color: var(--j-success);
}

.form-status.status-error {
  color: var(--j-error);
}

.form-error {
  font-size: 0.85rem;
  color: var(--j-error);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Stats on settings page */
.settings-stats {
  margin-bottom: 0;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--j-accent-glow);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--j-text-muted);
}

.stat-value {
  font-weight: 600;
  color: var(--j-accent);
}

/* Export */
.export-controls {
  margin-bottom: 0;
}

.export-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Danger zone */
.settings-danger {
  border-color: var(--j-error);
  border-left: 3px solid var(--j-error);
}

.settings-danger h2 {
  color: var(--j-error);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.settings-danger p {
  font-size: 0.85rem;
  color: var(--j-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===================================================================
   LANDING / SALES PAGE
   =================================================================== */

.journal-landing {
  max-width: 50rem;
}

.journal-landing section {
  margin-bottom: 3.5rem;
}

/* Hero */
.journal-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.journal-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--j-text-muted);
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero-login {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  margin-top: 0.75rem;
}

.hero-login a {
  color: var(--j-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--j-accent-light);
  transition: border-color 0.2s;
}

.hero-login a:hover {
  border-color: var(--j-accent);
}

.hero-free-note {
  font-size: 0.82rem;
  color: var(--j-text-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--j-border);
}

.trust-item {
  font-size: 0.78rem;
  color: var(--j-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.trust-divider {
  width: 4px;
  height: 4px;
  background-color: var(--j-accent-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Product trial callout */
.product-trial {
  font-size: 0.82rem;
  color: var(--j-success);
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

/* Mid-page CTA */
.journal-mid-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--j-accent-glow);
  border-radius: var(--j-radius-lg);
  margin-bottom: 3.5rem;
}

.journal-mid-cta p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--j-text);
  margin-bottom: 1.25rem;
}

/* Why It Works */
.journal-why-it-works {
  margin-bottom: 3.5rem;
}

.why-intro {
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: var(--j-text-muted);
  max-width: 30rem;
  margin: -0.5rem auto 2rem;
  line-height: 1.75;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.why-card {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.25rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.why-card:hover {
  box-shadow: var(--j-shadow-md);
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--j-text);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 600px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Paper journal cross-sell */
.journal-paper-callout {
  margin-bottom: 3.5rem;
}

.paper-callout-inner {
  text-align: center;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--j-shadow-sm);
  max-width: 34rem;
  margin: 0 auto;
}

.paper-callout-inner h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--j-text);
}

.paper-callout-inner p {
  font-size: 0.92rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.paper-callout-series {
  font-size: 0.85rem !important;
  font-style: italic;
  margin-top: 0.75rem !important;
}

.paper-callout-series a {
  color: var(--j-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--j-accent-light);
}

.paper-callout-series a:hover {
  border-color: var(--j-accent);
}

.hero-login a:hover {
  border-color: var(--j-accent);
}

/* Section Headings */
.journal-landing h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.step {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.step:hover {
  box-shadow: var(--j-shadow-md);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--j-accent);
  color: #FFF;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  line-height: 1.6;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background-color: var(--j-bg-card);
  border: 1.5px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: var(--j-shadow-md);
  transform: translateY(-2px);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.product-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--j-text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--j-accent);
  margin-bottom: 0.5rem;
}

.product-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--j-text-muted);
}

.product-card ul {
  list-style: none;
  margin: 0 auto 1.25rem;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 20rem;
}

.product-card li {
  padding-left: 0.25rem;
}

.product-card li::before {
  content: "\2713\00a0";
  color: var(--j-success);
  font-weight: 700;
}

.product-sunrise {
  border-color: var(--j-accent-light);
}

.product-sunrise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--j-accent-light), var(--j-accent));
}

.product-nightowl {
  border-color: #8B9AAD;
}

.product-nightowl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B9AAD, #6B7B8D);
}

.bundle-callout {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--j-accent-glow);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  box-shadow: var(--j-shadow-sm);
}

.bundle-callout p {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--j-text-muted);
}

/* Sample Prompts */
.sample-prompts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

.sample-section {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-accent-light);
  border-radius: var(--j-radius);
  padding: 1.25rem;
  box-shadow: var(--j-shadow-sm);
}

.sample-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--j-accent);
  margin-bottom: 0.5rem;
}

.sample-anchor {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.sample-rotating {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  font-style: italic;
  line-height: 1.6;
}

.sample-closing {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  box-shadow: var(--j-shadow-sm);
  position: relative;
}

.sample-closing::before {
  content: '\201C';
  position: absolute;
  top: 0.2rem;
  left: 1rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--j-accent-light);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.sample-closing p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.sample-closing-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--j-text-muted);
  margin-top: 0.5rem;
}

/* Differentiators */
.differentiators {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.differentiators li {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.differentiators li:hover {
  box-shadow: var(--j-shadow-md);
}

.differentiators li strong {
  color: var(--j-text);
}

/* FAQ */
.faq-list {
  max-width: 36rem;
  margin: 0 auto;
}

.faq-list details {
  margin-bottom: 0.6rem;
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius);
  background-color: var(--j-bg-card);
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.faq-list details[open] {
  box-shadow: var(--j-shadow-md);
}

.faq-list summary {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s;
}

.faq-list summary:hover {
  color: var(--j-accent);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--j-accent);
  border: 1.5px solid var(--j-border);
  border-radius: 50%;
  transition: all 0.2s;
}

.faq-list details[open] summary::before {
  content: "\2212";
  background-color: var(--j-accent);
  color: #FFF;
  border-color: var(--j-accent);
}

.faq-list details p {
  font-size: 0.9rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  padding: 0 1.25rem 1rem 3.25rem;
  margin: 0;
}

/* Final CTA */
.journal-cta-final {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  box-shadow: var(--j-shadow-md);
}

.journal-cta-final h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.journal-cta-final p {
  font-size: 0.95rem;
  color: var(--j-text-muted);
  margin-bottom: 1.5rem;
}

/* ===================================================================
   CANCEL PAGE
   =================================================================== */

.cancel-stats {
  text-align: center;
  margin-bottom: var(--j-section-gap);
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--j-shadow-sm);
}

.cancel-stats p {
  font-size: 0.95rem;
  color: var(--j-text-muted);
  margin-bottom: 1.25rem;
}

.cancel-stats-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cancel-stats-grid .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: none;
  padding: 0;
}

.cancel-stats-grid .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--j-accent);
  line-height: 1.2;
}

.cancel-stats-grid .stat-label {
  font-size: 0.8rem;
  color: var(--j-text-muted);
  margin-top: 0.2rem;
}

/* Alternatives */
.cancel-alternatives {
  margin-bottom: var(--j-section-gap);
}

.cancel-alternatives h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.alternative {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-left: 3px solid var(--j-success);
  border-radius: var(--j-radius);
  padding: 1.25rem;
  box-shadow: var(--j-shadow-sm);
  transition: box-shadow 0.2s;
}

.alternative:hover {
  box-shadow: var(--j-shadow-md);
}

.alternative h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.alternative p {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  line-height: 1.6;
}

/* Survey */
.cancel-survey {
  margin-bottom: var(--j-section-gap);
}

.cancel-survey h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Reassurance */
.cancel-reassurance {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--j-shadow-sm);
}

.cancel-reassurance h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.cancel-reassurance ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cancel-reassurance li {
  font-size: 0.88rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  padding: 0.2rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.cancel-reassurance li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--j-success);
  font-weight: 700;
}

.cancel-reassurance p {
  font-size: 0.9rem;
  color: var(--j-text-muted);
  line-height: 1.6;
}

.cancel-reassurance a {
  color: var(--j-accent);
  font-weight: 600;
}

.cancel-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

/* ===================================================================
   SESSION / CONFLICT OVERLAYS (from JS)
   =================================================================== */

.session-expired-overlay,
.conflict-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.session-expired-modal,
.conflict-modal {
  background-color: var(--j-bg-card);
  border-radius: var(--j-radius-lg);
  padding: 2.5rem 2rem;
  max-width: 24rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.session-expired-modal h2,
.conflict-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.session-expired-modal p,
.conflict-modal p {
  font-size: 0.92rem;
  color: var(--j-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.conflict-modal .btn {
  margin: 0.25rem;
}

.session-expired-modal p,
.conflict-modal p {
  font-size: 0.9rem;
  color: var(--j-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.conflict-modal .btn {
  margin: 0 0.35rem;
}

/* ===================================================================
   DARK MODE TOGGLE
   =================================================================== */

#dark-mode-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--j-border);
  background-color: var(--j-bg-card);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background-color 0.2s;
}

#dark-mode-toggle:hover {
  background-color: rgba(184, 134, 11, 0.08);
}

#dark-mode-toggle:focus {
  outline: 2px solid var(--j-border-focus);
  outline-offset: 2px;
}

/* ===================================================================
   RESPONSIVE — Tablet and up (600px+)
   =================================================================== */

@media (min-width: 600px) {
  .journal-entry,
  .journal-history,
  .journal-reflect,
  .journal-welcome,
  .journal-lookback,
  .journal-settings,
  .journal-cancel {
    padding: 2.5rem 2rem 4rem;
  }

  .journal-landing {
    padding: 2.5rem 2rem 4rem;
  }

  .journal-title {
    font-size: 1.8rem;
  }

  .journal-hero h1 {
    font-size: 2.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differentiators {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-steps {
    flex-direction: row;
  }

  .welcome-step {
    flex: 1;
  }

  .journal-textarea,
  .reflect-textarea {
    min-height: 10rem;
  }

  .journal-section {
    padding: 1.75rem 1.5rem;
  }

  .journal-hero {
    padding: 4rem 1.5rem 3rem;
  }

  .product-card {
    padding: 2.5rem 2rem;
  }

  .journal-cta-final {
    padding: 3.5rem 2rem;
  }

  .sample-prompts {
    max-width: 36rem;
  }
}

/* ===================================================================
   RESPONSIVE — Desktop (900px+)
   =================================================================== */

@media (min-width: 900px) {
  .journal-hero h1 {
    font-size: 2.8rem;
  }

  .journal-landing {
    max-width: 58rem;
  }

  .differentiators {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    padding: 2.5rem;
  }
}

/* ===================================================================
   LEGAL PAGES (Terms, Privacy)
   =================================================================== */

.journal-legal {
  max-width: var(--j-max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--j-text);
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--j-border);
}

.legal-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--j-text-muted);
  letter-spacing: 0.02em;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section {
  background-color: var(--j-bg-card);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--j-shadow-sm);
}

.legal-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--j-text);
}

.legal-section p {
  font-size: 0.92rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-section li {
  font-size: 0.9rem;
  color: var(--j-text-muted);
  line-height: 1.7;
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--j-accent-glow);
}

.legal-section li:last-child {
  border-bottom: none;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  background-color: var(--j-accent-light);
  border-radius: 50%;
}

.legal-section li strong {
  color: var(--j-text);
}

.legal-section a {
  color: var(--j-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--j-accent-light);
  transition: border-color 0.2s;
}

.legal-section a:hover {
  border-color: var(--j-accent);
}

/* ===== Journal Entry Loading State ===== */
.journal-entry .journal-section .journal-textarea {
  transition: opacity 0.3s;
}

.journal-entry.is-loading .journal-section {
  position: relative;
  overflow: hidden;
}

.journal-entry.is-loading .journal-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { left: 100%; }
}

/* ===================================================================
   MOBILE APP MODE (journal pages, under 600px)
   =================================================================== */

/* App header — hidden by default, shown on mobile journal pages */
.journal-app-header {
  display: none;
}

/* App bottom tabs — hidden by default, shown on mobile journal pages */
.journal-app-tabs {
  display: none;
}

@media (max-width: 599px) {
  /* Hide site chrome on journal pages */
  body.has-journal-app .site-nav {
    display: none;
  }

  body.has-journal-app .site-footer {
    display: none;
  }

  /* Show app header */
  body.has-journal-app .journal-app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background-color: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--j-border);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .journal-app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--j-accent);
    color: #FFF;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(184, 134, 11, 0.2);
  }

  .journal-app-season {
    font-size: 0.78rem;
    color: var(--j-season-accent, var(--j-text-muted));
    letter-spacing: 0.04em;
  }

  /* Show bottom tab bar */
  body.has-journal-app .journal-app-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 246, 241, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--j-border);
    z-index: 100;
    padding: 0.35rem 0 env(safe-area-inset-bottom, 0.25rem);
    justify-content: space-around;
  }

  .app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
    text-decoration: none;
    color: var(--j-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .app-tab svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
  }

  .app-tab-active {
    color: var(--j-season-accent, var(--j-accent));
  }

  .app-tab-active svg {
    stroke: var(--j-season-accent, var(--j-accent));
  }

  /* Add padding at bottom of journal pages for tab bar */
  body.has-journal-app .journal-entry,
  body.has-journal-app .journal-history,
  body.has-journal-app .journal-reflect,
  body.has-journal-app .journal-lookback,
  body.has-journal-app .journal-settings,
  body.has-journal-app .journal-welcome,
  body.has-journal-app .journal-cancel {
    padding-bottom: 5rem;
  }

  /* Hide the old bottom nav links on mobile (replaced by tab bar) */
  body.has-journal-app .journal-nav {
    display: none;
  }

  /* Adjust header to be more compact */
  body.has-journal-app .journal-header {
    padding-top: 0.5rem;
  }

  /* Toast notification */
  .journal-toast {
    position: fixed;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--j-bg-card);
    border: 1px solid var(--j-border);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--j-text-muted);
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
  }

  .journal-toast.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .toast-saved {
    color: var(--j-success);
    border-color: rgba(74, 124, 89, 0.2);
  }

  .toast-saving {
    color: var(--j-text-muted);
    font-style: italic;
  }

  .toast-error {
    color: var(--j-error);
    border-color: rgba(169, 68, 66, 0.2);
  }

  /* Page fade-in animation */
  body.has-journal-app .journal-entry,
  body.has-journal-app .journal-history,
  body.has-journal-app .journal-reflect,
  body.has-journal-app .journal-lookback,
  body.has-journal-app .journal-settings {
    animation: appFadeIn 0.3s ease;
  }

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

/* ===================================================================
   PRINT STYLES (journal pages)
   =================================================================== */

@media print {
  .journal-nav,
  .journal-actions,
  .journal-save-status,
  .journal-banner,
  .journal-mood,
  .cookie-consent,
  #dark-mode-toggle,
  .btn {
    display: none !important;
  }

  .journal-entry,
  .journal-reflect,
  .journal-lookback {
    padding: 0;
    max-width: 100%;
  }

  .journal-section {
    break-inside: avoid;
    border: none;
    border-left: none;
    box-shadow: none;
    padding: 0.75rem 0;
  }

  .journal-textarea,
  .reflect-textarea {
    border: none;
    padding: 0;
    box-shadow: none;
    min-height: auto;
    height: auto;
  }

  .journal-closing {
    box-shadow: none;
    border: none;
    border-top: 1px solid #CCC;
  }

  .journal-closing::before {
    display: none;
  }

  .journal-header {
    padding-bottom: 0.5rem;
  }

  .section-name {
    color: #000;
  }
}
