/* Gone But Cherished — shared app styles (warm, emotional, premium) */
:root {
  --gbc-green: #6e8f72;
  --gbc-green-dark: #4e7051;
  --gbc-sage: #8fad93;
  --gbc-gold: #c4a574;
  --gbc-gold-soft: #e8d9be;
  --gbc-slate: #2f4f4f;
  --gbc-warm-gray: #5c6b64;
  --gbc-bg: #f7f3eb;
  --gbc-cream: #faf6f0;
  --gbc-ivory: #f3eee4;
  --gbc-card: #fffcf7;
  --gbc-border: #e2ddd3;
  --gbc-text: #2a3530;
  --gbc-muted: #5c6b64;
  --gbc-danger: #a94442;
  --gbc-success: #3c763d;
  --gbc-radius: 16px;
  --gbc-radius-sm: 12px;
  --gbc-shadow: 0 12px 40px rgba(47, 79, 79, 0.08);
  --gbc-shadow-soft: 0 6px 24px rgba(47, 79, 79, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--gbc-bg);
  color: var(--gbc-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gbc-green-dark); }
a:hover { color: var(--gbc-slate); }

/* —— Header / brand —— */
.app-header {
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(110, 143, 114, 0.12);
  padding: 12px clamp(16px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--gbc-slate);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

.app-nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.app-nav a { text-decoration: none; color: var(--gbc-muted); font-size: 0.95rem; transition: color 0.2s; }
.app-nav a:hover { color: var(--gbc-green-dark); }
.nav-user { color: var(--gbc-warm-gray); font-size: 0.9rem; }

.container {
  max-width: 960px;
  margin: 28px auto;
  padding: 0 16px 48px;
}

.card {
  background: var(--gbc-card);
  border-radius: var(--gbc-radius);
  box-shadow: var(--gbc-shadow);
  border: 1px solid rgba(110, 143, 114, 0.1);
  padding: 28px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--gbc-slate);
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: clamp(1.85rem, 3vw, 2.35rem); margin-top: 0; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }

label { display: block; margin: 14px 0 6px; font-weight: 500; font-size: 0.92rem; color: var(--gbc-slate); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="color"], input[type="url"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gbc-border);
  border-radius: var(--gbc-radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--gbc-cream);
  color: var(--gbc-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gbc-green);
  box-shadow: 0 0 0 3px rgba(110, 143, 114, 0.18);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
.form-row { margin-bottom: 8px; }
.help { font-size: 0.88rem; color: var(--gbc-muted); margin-top: 6px; font-weight: 300; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  background: var(--gbc-green);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(110, 143, 114, 0.28);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--gbc-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(78, 112, 81, 0.32);
}
.btn-secondary {
  background: #7a8580;
  box-shadow: 0 6px 18px rgba(90, 98, 104, 0.2);
}
.btn-secondary:hover { background: #5a6268; }
.btn-danger { background: var(--gbc-danger); box-shadow: none; }
.btn-outline {
  background: transparent;
  color: var(--gbc-green-dark) !important;
  border: 1.5px solid rgba(110, 143, 114, 0.45);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(110, 143, 114, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }

.flash {
  padding: 12px 16px;
  border-radius: var(--gbc-radius-sm);
  margin-bottom: 16px;
}
.flash-error { background: #f8e8e8; color: #721c24; }
.flash-success { background: #e5f0e6; color: #155724; }
.flash-info { background: #e6eef2; color: #0c5460; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.template-picker {
  align-items: stretch;
}

/* Template picker styles moved to css/template-picker.css when on Step 2 */

/* —— Story writing help —— */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wizard-subhead {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gbc-slate);
  margin: 0 0 0.75rem;
}
.wizard-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.wizard-guided textarea,
.wizard-ai textarea {
  width: 100%;
}
.wizard-ai {
  background: linear-gradient(165deg, rgba(110, 143, 114, 0.08), rgba(247, 243, 235, 0.9));
  border: 1px solid rgba(110, 143, 114, 0.22);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  position: sticky;
  top: 1rem;
}
.wizard-ai-log {
  max-height: 240px;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.15rem;
}
.wizard-ai-bubble {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.wizard-ai-bubble--assistant {
  background: #fff;
  border: 1px solid rgba(47, 79, 79, 0.1);
  color: var(--gbc-slate);
}
.wizard-ai-bubble--user {
  background: rgba(110, 143, 114, 0.18);
  color: var(--gbc-slate);
  justify-self: end;
  max-width: 92%;
}
.wizard-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.wizard-ai-status {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--gbc-muted);
}
.wizard-ai-status.is-error {
  color: #8a3b2d;
}
.wizard-ai-approve {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(196, 165, 116, 0.12);
  border: 1px solid rgba(196, 165, 116, 0.28);
}
.wizard-ai-approve input {
  margin-top: 0.2rem;
}
@media (max-width: 860px) {
  .wizard-story-grid {
    grid-template-columns: 1fr;
  }
  .wizard-ai {
    position: static;
  }
}

/* —— Wizard —— */
.wizard-page-head {
  text-align: center;
  margin-bottom: 28px;
}
.wizard-page-head h1 { margin-bottom: 8px; }
.wizard-page-head .help { max-width: 42ch; margin-inline: auto; }

.wizard-progress-wrap {
  margin-bottom: 28px;
}
.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.wizard-progress-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gbc-slate);
  margin: 0;
}
.wizard-progress-pct {
  font-size: 0.85rem;
  color: var(--gbc-muted);
  font-weight: 500;
}
.wizard-progress-bar {
  height: 8px;
  background: var(--gbc-ivory);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(110, 143, 114, 0.12);
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gbc-green), var(--gbc-gold));
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.wizard-steps span {
  background: var(--gbc-ivory);
  color: var(--gbc-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.wizard-steps span.active {
  background: var(--gbc-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(110, 143, 114, 0.28);
}
.wizard-steps span.done {
  background: rgba(110, 143, 114, 0.18);
  color: var(--gbc-slate);
  border-color: rgba(110, 143, 114, 0.2);
}

.wizard-step-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(110, 143, 114, 0.1), rgba(196, 165, 116, 0.12));
  border-radius: var(--gbc-radius-sm);
  border: 1px solid rgba(110, 143, 114, 0.12);
}
.wizard-step-intro .wiz-illu {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gbc-card);
  color: var(--gbc-green-dark);
  box-shadow: var(--gbc-shadow-soft);
}
.wizard-step-intro h2 { margin: 0 0 4px; font-size: 1.4rem; }
.wizard-step-intro p { margin: 0; color: var(--gbc-muted); font-size: 0.92rem; font-weight: 300; }

.wizard-celebrate {
  text-align: center;
  padding: 12px 8px 20px;
}
.wizard-celebrate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gbc-green-soft, #e8f0e9), var(--gbc-gold-soft));
  color: var(--gbc-green-dark);
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(110, 143, 114, 0.2);
  animation: wiz-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wiz-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wizard-celebrate h2 { margin-bottom: 8px; }
.wizard-celebrate p { color: var(--gbc-muted); max-width: 40ch; margin: 0 auto 18px; font-weight: 300; }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--gbc-border); text-align: left; }
.table th { font-size: 0.85rem; color: var(--gbc-muted); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--gbc-ivory);
}
.badge-active { background: #d4edda; color: #155724; }
.badge-draft { background: #fff3cd; color: #856404; }
.badge-pending { background: #cce5ff; color: #004085; }
.badge-suspended { background: #f8d7da; color: #721c24; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--gbc-card);
  border-radius: var(--gbc-radius);
  box-shadow: var(--gbc-shadow-soft);
  border: 1px solid rgba(110, 143, 114, 0.1);
  padding: 18px;
}
.stat-card .num { font-size: 1.8rem; font-weight: 600; color: var(--gbc-slate); font-family: var(--font-display); }
.stat-card .label { color: var(--gbc-muted); font-size: 0.9rem; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.pending-item {
  border: 1px solid var(--gbc-border);
  border-radius: var(--gbc-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--gbc-cream);
}
.pending-item img { max-width: 160px; border-radius: 6px; }
.pending-item video { max-width: 240px; border-radius: 6px; }

/* Legacy landing-hero kept for safety */
.landing-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, #eef4ef 0%, var(--gbc-bg) 100%);
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}
.landing-hero p { font-size: 1.2rem; color: var(--gbc-muted); max-width: 560px; margin: 0 auto 24px; }

/* —— Site footer —— */
.site-footer {
  background: #243830;
  color: rgba(247, 243, 235, 0.78);
  padding: 56px 0 0;
  margin-top: 40px;
}
.site-footer-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer-logo img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1.08);
}
.site-footer-mission {
  margin: 14px 0 8px;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 34ch;
}
.site-footer-tag {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gbc-gold-soft);
}
.site-footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f3eb;
  margin: 0 0 14px;
}
.site-footer-col a {
  display: block;
  color: rgba(247, 243, 235, 0.75) !important;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.site-footer-col a:hover { color: #fff !important; }
.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f3eb !important;
  margin-bottom: 0 !important;
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover {
  background: rgba(110, 143, 114, 0.45);
  transform: translateY(-2px);
}
.site-footer-bottom {
  border-top: 1px solid rgba(247, 243, 235, 0.12);
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}
.site-footer-bottom p { margin: 0; }
.site-footer-bottom a { color: rgba(247, 243, 235, 0.65) !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gbc-green-dark, #4e7051);
  color: #fff !important;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.site-builtby {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(247, 243, 235, 0.1);
}
.site-builtby-inner {
  max-width: 720px;
  padding: 18px 0 8px;
}
.site-builtby-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.7);
  font-weight: 600;
}
.site-builtby-copy,
.site-builtby-explore {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(247, 243, 235, 0.78);
}
.site-builtby-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.site-builtby-links a {
  color: rgba(232, 217, 190, 0.95) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
}
.site-builtby-links a:hover { color: #fff !important; }

.info-page { max-width: 760px; margin: 0 auto; }
.info-page h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  margin-top: 0;
}
.info-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 1.25rem 0;
}
.info-price-card {
  border: 1px solid var(--gbc-border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--gbc-cream, #faf6f0);
}
.info-price-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
}
.info-price-amount {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--gbc-slate);
  font-weight: 600;
}
.info-faq { margin: 0 0 1.25rem; }
.info-faq h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
}
.info-contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 8px;
}
.info-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.info-search-row input[type="search"] { flex: 1; min-width: 200px; }
.info-search-results {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 12px;
}
.info-search-results li {
  padding: 12px 14px;
  border: 1px solid var(--gbc-border);
  border-radius: 12px;
  background: var(--gbc-cream, #faf6f0);
  display: grid;
  gap: 4px;
}

.error-page { max-width: 640px; margin: 2rem auto; text-align: center; }
.error-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gbc-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.error-page h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  margin: 0 0 12px;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
}

.help-page .help-toc {
  margin: 0 0 1.25rem;
}
.help-page .help-toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.help-page .help-section {
  margin-bottom: 1rem;
}
.help-page .help-section h2,
.help-page .help-section h3 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  margin-top: 0;
}
.help-page .help-section ul,
.help-page .help-section ol {
  line-height: 1.55;
}
.help-support-form label {
  display: block;
  margin-top: 0.85rem;
}

@media (max-width: 720px) {
  .info-price-grid { grid-template-columns: 1fr; }
}

.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--gbc-muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
  .brand-logo { height: 38px; }
  .wizard-step-intro { flex-direction: column; text-align: center; }
}
