/* ==========================================================================
   No Gifts, Mate — Demo Design System
   Shared CSS for all demo pages
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand colours */
  --navy: #0F2748;
  --navy-deep: #091830;
  --navy-soft: #1a3258;
  --cream: #F5EFE2;
  --cream-dark: #ECE3D0;
  --cream-deep: #E2D5BA;
  --accent: #E8743C;
  --accent-soft: #F4A576;
  --accent-deep: #C95C28;
  --muted: #6B7A8F;
  --muted-light: #A4AEBF;
  --white: #FFFFFF;
  --bg-soft: #FBF8F1;

  /* Spacing */
  --container-max: 720px;
  --container-pad: 24px;

  /* Borders & shadows */
  --border-soft: 1px solid rgba(15,39,72,0.08);
  --border-medium: 1px solid rgba(15,39,72,0.12);
  --shadow-soft: 0 4px 24px rgba(15,39,72,0.06);
  --shadow-medium: 0 8px 32px rgba(15,39,72,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(232,116,60,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(15,39,72,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Demo nav (shared across all demo pages)
   ========================================================================== */

.demo-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 226, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-soft);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  text-decoration: none;
  color: var(--navy);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.5px;
}

.nav-brand em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.nav-back {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-back:hover { color: var(--navy); }

/* ==========================================================================
   Demo container & layout
   ========================================================================== */

.demo-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--container-pad) 60px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(232,116,60,0.08);
  border-radius: 100px;
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  color: var(--navy);
}

.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Hero (used on demo entry page)
   ========================================================================== */

.demo-hero {
  text-align: center;
  margin: 32px 0 56px;
}

.demo-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--navy);
  animation: fadeUp 0.6s 0.1s ease both;
}

.demo-hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--navy);
  opacity: 0.72;
  line-height: 1.6;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ==========================================================================
   Path picker (sample vs custom)
   ========================================================================== */

.path-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.path-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.path-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(232,116,60,0.2);
}

.path-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.path-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--navy);
}

.path-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.path-btn {
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  max-width: 320px;
  letter-spacing: 0.2px;
}

.path-btn:hover { background: var(--navy-deep); }
.path-btn:active { transform: translateY(1px); }

.path-custom .path-btn {
  background: var(--accent);
  color: var(--white);
}

.path-custom .path-btn:hover { background: var(--accent-deep); }

.path-meta {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted-light);
  font-style: italic;
}

.path-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4px 0;
}

.path-divider::before,
.path-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15,39,72,0.1);
}

.path-divider span {
  padding: 0 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted-light);
  font-weight: 500;
}

/* ==========================================================================
   Preview section (numbered list of what they'll see)
   ========================================================================== */

.preview-section {
  text-align: center;
  margin: 56px 0 40px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.preview-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.preview-step {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: var(--border-soft);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
}

.step-content { flex: 1; }

.step-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Trust strip (preview disclaimer)
   ========================================================================== */

.trust-strip {
  text-align: center;
  padding: 24px;
  background: rgba(15,39,72,0.04);
  border-radius: var(--radius-md);
  border: var(--border-soft);
}

.trust-strip p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================================
   Wizard pages — to be built in Stage 2
   ========================================================================== */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 40px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(15,39,72,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all 0.2s;
}

.wizard-step.active .wizard-step-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.wizard-step.complete .wizard-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.wizard-step-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  display: none;
}

.wizard-step.active .wizard-step-label {
  display: inline;
  color: var(--navy);
}

.wizard-step-line {
  width: 32px;
  height: 2px;
  background: rgba(15,39,72,0.12);
  border-radius: 1px;
}

.wizard-step.complete + .wizard-step-line { background: var(--accent); }

.wizard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.wizard-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  color: var(--navy);
}

.wizard-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid rgba(15,39,72,0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,116,60,0.12);
}

input::placeholder, textarea::placeholder { color: var(--muted-light); }

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
}

.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(15,39,72,0.2);
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: rgba(15,39,72,0.04);
}

.wizard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wizard-actions .btn-primary { flex: 1; }
.wizard-actions .btn-secondary { flex: 0 0 auto; }

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Mobile adjustments
   ========================================================================== */

@supports (padding: max(0px)) {
  .demo-container {
    padding-left: max(var(--container-pad), env(safe-area-inset-left));
    padding-right: max(var(--container-pad), env(safe-area-inset-right));
    padding-bottom: max(60px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .demo-nav { padding: 12px 18px; }
  .nav-brand { font-size: 0.95rem; }
  .nav-back { font-size: 0.78rem; }

  .path-card { padding: 26px 22px; }
  .path-title { font-size: 1.25rem; }
  .path-icon { font-size: 2rem; }

  .wizard-card { padding: 26px 22px; }
  .wizard-title { font-size: 1.4rem; }

  .preview-step { padding: 14px 16px; gap: 12px; }
  .step-num { width: 32px; height: 32px; font-size: 0.9rem; }
  .step-title { font-size: 0.98rem; }
  .step-desc { font-size: 0.8rem; }
}
