/* Campaign pages — shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #ffffff;
  --teal: #0d9488;
  --teal-hover: #0b7f74;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #dc2626;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #262321;
  --bg-deep: #1a1715;
  --bg-surface: #312e2b;
  --bg-surface-raised: #3a3734;
  --text: #e8e6e3;
  --text-secondary: #a09d9a;
  --text-muted: #706d6a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.08);
  --hover: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.3);
  --card-outline: transparent;
  --teal-dim: rgba(13,148,136,0.12);
  --teal-light: rgba(13,148,136,0.18);
}

[data-theme="light"] {
  --bg: #f9f8f7;
  --bg-deep: #ededea;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f5f4f2;
  --text: #0e0e0e;
  --text-secondary: #717171;
  --text-muted: #999;
  --border: #e8e8e5;
  --border-strong: #deded9;
  --hover: rgba(0,0,0,0.03);
  --shadow: rgba(0,0,0,0.08);
  --card-outline: rgba(0,0,0,0.08);
  --teal-dim: rgba(13,148,136,0.05);
  --teal-light: rgba(13,148,136,0.10);
}

html {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.app { opacity: 0; transition: opacity 0.25s ease; }
.app.ready { opacity: 1; }

/* Header */
.app-header {
  background: #1a1715;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-logo { display: flex; align-items: center; text-decoration: none; }
.header-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.back-link {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: rgba(255,255,255,0.9); }

/* Main */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}
.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.page-desc {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 2.5rem; max-width: 520px;
}

/* Sections */
.section { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem;
}

/* Continue button */
.continue-btn {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--teal);
  border: none; border-radius: 12px;
  padding: 0.85rem 2.25rem; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.continue-btn:hover { background: var(--teal-hover); }
.continue-btn:disabled { opacity: 0.4; cursor: default; }

/* Loading */
.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 40vh; gap: 1rem;
}
.loading-text { font-size: 0.95rem; color: var(--text-secondary); }

/* Error */
.error-msg {
  font-size: 0.85rem; color: var(--red); margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .main { padding: 2rem 1rem 3rem; }
  .page-title { font-size: 1.5rem; }
  .continue-btn { width: 100%; justify-content: center; }
  input, textarea, select { font-size: max(16px, 1em) !important; }
}

@media (max-width: 480px) {
  .app-header { padding: 0.75rem 1rem; height: 60px; }
  .header-logo img { height: 40px; }
  .main { padding: 1.5rem 0.75rem 2.5rem; }
  .page-desc { margin-bottom: 1.75rem; font-size: 0.9rem; }
  .section { margin-bottom: 1.75rem; }
  .continue-btn { padding: 0.85rem 1.5rem; font-size: 0.9rem; }
}
