    :root {
      --cream: #fdfbf7;
      --cream-dark: #f5f0e8;
      --warm-white: #fffefa;
      --parchment: #f0ebe0;
      --amber: #d4940a;
      --amber-light: #e8b44c;
      --amber-soft: #f5d89a;
      --text-primary: #2c2416;
      --text-secondary: #5c5347;
      --text-muted: #8a8279;
      --border-light: #e8e2d9;
      --border-medium: #d4cdc2;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--cream);
      color: var(--text-primary);
      min-height: 100vh;
      line-height: 1.7;
    }

    .container { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

    /* Header */
    header {
      padding: 1.25rem 0;
      border-bottom: 1px solid var(--border-light);
      background: var(--warm-white);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 920px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .logo {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-primary);
      text-decoration: none;
      display: inline-block;
    }

    .logo span { color: var(--amber); }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }

    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--amber); }

    /* Progress Bar */
    .progress-container {
      background: var(--warm-white);
      border-bottom: 1px solid var(--border-light);
      padding: 2rem 0;
      margin-bottom: 3rem;
    }

    .progress-bar {
      display: flex;
      justify-content: space-between;
      max-width: 920px;
      margin: 0 auto;
      padding: 0 1.5rem;
      gap: 0.5rem;
    }

    .progress-step {
      flex: 1;
      text-align: center;
      cursor: pointer;
      opacity: 0.4;
      transition: opacity 0.3s;
      position: relative;
    }

    .progress-step.active {
      opacity: 1;
    }

    .progress-step-label {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .progress-step-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--cream);
      border: 2px solid var(--border-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-muted);
      margin: 0 auto;
      transition: all 0.3s;
    }

    .progress-step.active .progress-step-circle {
      background: var(--amber);
      color: white;
      border-color: var(--amber);
    }

    .progress-step-name {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 0.25rem;
    }

    /* Main Content Area */
    .wizard-container {
      min-height: calc(100vh - 200px);
      position: relative;
    }

    /* Hero/Start Screen */
    .hero-screen {
      text-align: center;
      padding: 3rem 0;
      animation: fadeIn 0.3s ease-out;
    }

    .hero-screen h1 {
      font-family: 'Libre Baskerville', serif;
      font-size: clamp(2rem, 5vw, 2.8rem);
      font-weight: 700;
      margin-bottom: 1rem;
      line-height: 1.2;
    }

    .hero-screen p {
      font-size: 1.1rem;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-ctas {
      display: flex;
      gap: 1rem;
      justify-content: center;
      margin-top: 2.5rem;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.875rem 1.75rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: var(--amber);
      color: white;
    }

    .btn:hover {
      background: var(--amber-light);
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: var(--cream-dark);
      color: var(--text-primary);
      border: 1px solid var(--border-light);
    }

    .btn-secondary:hover {
      border-color: var(--amber);
      background: var(--parchment);
    }

    /* Templates Grid */
    .templates-section {
      margin-top: 2.5rem;
    }

    .templates-section h3 {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.25rem;
      text-align: center;
      margin-bottom: 1.5rem;
      color: var(--text-secondary);
    }

    .templates-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1rem;
      max-width: 800px;
      margin: 0 auto;
    }

    .template-card {
      background: var(--warm-white);
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: center;
    }

    .template-card:hover {
      border-color: var(--amber);
      box-shadow: 0 4px 12px rgba(44, 36, 22, 0.08);
      transform: translateY(-2px);
    }

    .template-colors {
      display: flex;
      gap: 0.4rem;
      justify-content: center;
      margin-bottom: 0.75rem;
    }

    .color-swatch {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .template-name {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 0.25rem;
    }

    .template-desc {
      font-size: 0.7rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* Step Screens */
    .step-screen {
      animation: fadeIn 0.3s ease-out;
      display: none;
      opacity: 0;
      transition: opacity 0.2s ease-out;
    }

    .step-screen.active {
      display: block;
      opacity: 1;
    }

    .step-header {
      text-align: center;
      margin-bottom: 2.5rem;
    }

    .step-header h2 {
      font-family: 'Libre Baskerville', serif;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .step-header p {
      font-size: 1.1rem;
      color: var(--text-secondary);
    }

    /* Step 1: Colors */
    .mood-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }

    .mood-card {
      background: var(--warm-white);
      border: 2px solid var(--border-light);
      border-radius: 10px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: center;
    }

    .mood-card:hover {
      border-color: var(--amber);
      box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
      transform: translateY(-2px);
    }

    .mood-card.selected {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .mood-preview {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      margin-bottom: 1rem;
      height: 48px;
    }

    .mood-color {
      flex: 1;
      border-radius: 6px;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mood-name {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }

    .mood-description {
      font-size: 0.85rem;
      color: var(--text-secondary);
    }

    /* Step 2: Typography */
    .font-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }

    .font-card {
      background: var(--warm-white);
      border: 2px solid var(--border-light);
      border-radius: 10px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .font-card:hover {
      border-color: var(--amber);
      box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
      transform: translateY(-2px);
    }

    .font-card.selected {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .font-preview {
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border-light);
    }

    .font-heading {
      font-size: 1.8rem;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 0.5rem;
    }

    .font-body {
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .font-name {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }

    .font-detail {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* Step 3: Spacing */
    .spacing-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }

    .spacing-card {
      background: var(--warm-white);
      border: 2px solid var(--border-light);
      border-radius: 10px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .spacing-card:hover {
      border-color: var(--amber);
      box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
      transform: translateY(-2px);
    }

    .spacing-card.selected {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .spacing-preview {
      margin-bottom: 1rem;
      padding: 1rem;
      background: var(--cream);
      border-radius: 6px;
      font-family: 'Libre Baskerville', serif;
    }

    .spacing-h1 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .spacing-h2 {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
    }

    .spacing-h3 {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
    }

    .spacing-body {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .spacing-name {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }

    .spacing-detail {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* Step 4: Shadows */
    .shadow-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }

    .shadow-card {
      background: var(--warm-white);
      border: 2px solid var(--border-light);
      border-radius: 10px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .shadow-card:hover {
      border-color: var(--amber);
      transform: translateY(-2px);
    }

    .shadow-card.selected {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .shadow-preview-box {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      text-align: center;
      font-weight: 600;
      color: var(--text-primary);
    }

    .shadow-preview-box.flat {
      border: 1px solid var(--border-light);
      box-shadow: none;
    }

    .shadow-preview-box.subtle {
      box-shadow: 0 2px 4px rgba(44, 36, 22, 0.08);
    }

    .shadow-preview-box.elevated {
      box-shadow: 0 8px 24px rgba(44, 36, 22, 0.15);
    }

    .shadow-name {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }

    .shadow-detail {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* Step 5: Dark Mode */
    .dark-mode-content {
      max-width: 900px;
      margin: 0 auto;
      margin-bottom: 2rem;
    }

    .comparison-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .comparison-side {
      border-radius: 10px;
      overflow: hidden;
      border: 2px solid var(--border-light);
    }

    .comparison-label {
      padding: 1rem;
      background: var(--cream-dark);
      font-weight: 600;
      font-size: 0.9rem;
      text-align: center;
      border-bottom: 1px solid var(--border-light);
    }

    .preview-content {
      padding: 1.5rem;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
    }

    .preview-heading {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.8rem;
      font-weight: 700;
      text-align: center;
    }

    .preview-button {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      font-size: 0.9rem;
    }

    .mode-options {
      display: flex;
      gap: 1rem;
      justify-content: center;
      margin-top: 1.5rem;
      flex-wrap: wrap;
    }

    .mode-option {
      padding: 0.75rem 1.5rem;
      border: 2px solid var(--border-light);
      background: var(--warm-white);
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

    .mode-option:hover {
      border-color: var(--amber);
    }

    .mode-option.selected {
      background: var(--amber);
      color: white;
      border-color: var(--amber);
    }

    /* Finish Screen */
    .finish-screen {
      max-width: 900px;
      margin: 0 auto;
    }

    .brand-kit-section {
      background: var(--warm-white);
      border: 1px solid var(--border-light);
      border-radius: 10px;
      padding: 2rem;
      margin-bottom: 2rem;
    }

    .kit-section-title {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 2px solid var(--border-light);
    }

    .color-palette {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .palette-color {
      text-align: center;
    }

    .palette-swatch {
      width: 100%;
      height: 80px;
      border-radius: 8px;
      margin-bottom: 0.5rem;
      border: 1px solid var(--border-light);
    }

    .palette-hex {
      font-family: 'Courier New', monospace;
      font-size: 0.8rem;
      color: var(--text-muted);
      word-break: break-all;
    }

    .font-showcase {
      background: var(--cream);
      padding: 1.5rem;
      border-radius: 8px;
      margin-bottom: 1rem;
    }

    .showcase-heading {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .showcase-body {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .brand-name-input {
      width: 100%;
      max-width: 400px;
      padding: 0.75rem;
      border: 1px solid var(--border-light);
      border-radius: 6px;
      font-size: 1rem;
      margin-bottom: 2rem;
    }

    .export-buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

    .btn-export {
      flex: 1;
      min-width: 150px;
      padding: 0.875rem 1.5rem;
      background: var(--cream-dark);
      color: var(--text-primary);
      border: 1px solid var(--border-light);
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .btn-export:hover {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .btn-pdf {
      background: var(--amber);
      color: white;
      border-color: var(--amber);
      position: relative;
    }

    .btn-pdf:hover {
      background: var(--amber-light);
      border-color: var(--amber-light);
    }

    .pro-badge {
      display: inline-block;
      font-size: 0.65rem;
      font-weight: 700;
      background: var(--amber);
      color: white;
      padding: 0.2rem 0.5rem;
      border-radius: 3px;
      margin-left: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .customize-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--amber);
      text-decoration: none;
      font-weight: 600;
      margin-top: 1rem;
      transition: gap 0.2s;
    }

    .customize-link:hover {
      gap: 0.75rem;
    }

    /* Navigation Buttons */
    .step-nav {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border-light);
    }

    .btn-back {
      background: var(--cream-dark);
      color: var(--text-primary);
      border: 1px solid var(--border-light);
    }

    .btn-back:hover {
      border-color: var(--amber);
      background: var(--parchment);
    }

    .btn-next {
      background: var(--amber);
      color: white;
      margin-left: auto;
    }

    .btn-next:disabled {
      background: var(--text-muted);
      cursor: not-allowed;
      opacity: 0.6;
    }

    /* Footer */
    footer {
      padding: 2rem 0;
      text-align: center;
      border-top: 1px solid var(--border-light);
      color: var(--text-muted);
      font-size: 0.85rem;
      background: var(--warm-white);
      margin-top: 3rem;
    }

    footer a { color: var(--amber); text-decoration: none; }
    footer a:hover { text-decoration: underline; }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 768px) {
      .header-inner { flex-direction: column; gap: 1rem; }
      .mood-cards, .font-cards, .spacing-cards, .shadow-cards {
        grid-template-columns: 1fr;
      }
      .comparison-container {
        grid-template-columns: 1fr;
      }
      .step-nav {
        flex-direction: column;
      }
      .btn-next {
        margin-left: 0;
      }
      .hero-ctas {
        flex-direction: column;
      }
      .btn {
        width: 100%;
        justify-content: center;
      }
    }

/* ---- Inline style replacements ---- */
.initially-hidden { display: none; }
.section-intro { text-align: center; margin-bottom: 2rem; }
.nav-badge-inline { margin: 0; animation: none; }
.btn-amber { background: var(--amber); color: white; }

/* Font preview classes */
.font-preview-inter { font-family: 'Inter', sans-serif; }
.font-preview-playfair { font-family: 'Playfair Display', serif; }
.font-preview-lato { font-family: 'Lato', sans-serif; }
.font-preview-space-grotesk { font-family: 'Space Grotesk', sans-serif; }
.font-preview-dm-sans { font-family: 'DM Sans', sans-serif; }
.font-preview-nunito { font-family: 'Nunito', sans-serif; }
.font-preview-open-sans { font-family: 'Open Sans', sans-serif; }
.font-preview-baskerville { font-family: 'Libre Baskerville', serif; }
.font-preview-source-sans { font-family: 'Source Sans Pro', sans-serif; }
.font-preview-system { font-family: system-ui, -apple-system, sans-serif; }

/* Spacing preview */
.spacing-font-serif { font-family: 'Libre Baskerville', serif; }
.spacing-compact-h1 { margin-bottom: 0.25rem; }
.spacing-compact-h2 { margin-bottom: 0.25rem; }
.spacing-balanced-h1 { margin-bottom: 0.75rem; }
.spacing-balanced-h2 { margin-bottom: 0.5rem; }
.spacing-spacious-h1 { margin-bottom: 1.2rem; }
.spacing-spacious-h2 { margin-bottom: 0.8rem; }

/* Finish screen dynamic content classes */
.finish-font-meta { font-size: 0.9rem; color: var(--text-muted); }
.finish-spacing-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.finish-spacing-preview { background: var(--cream); padding: 1.5rem; border-radius: 8px; font-family: 'Libre Baskerville', serif; }
.finish-shadow-box { background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; }
.finish-shadow-meta { font-size: 0.9rem; color: var(--text-muted); }
