
:root{
  --bg:#f7f7f5;
  --card:#ffffff;
  --ink:#0b0b0c;
  --muted:#6e737c;
  --line:#e5e5e3;
  --soft:#f1f1ef;
  --green:#14a56f;
  --radius:22px;
  --container:1320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 8% 8%, rgba(0,0,0,.025), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0,0,0,.02), transparent 25%),
    var(--bg);
  color:var(--ink);
  font-family:Inter,Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(var(--container),calc(100% - 48px));margin:auto}

.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(247,247,245,.9);
  backdrop-filter:blur(18px);
  padding:18px 0 10px;
}
.onb-nav{
  height:68px;
  display:flex;align-items:center;justify-content:space-between;
  background:#fff;border:1px solid var(--line);
  border-radius:22px;padding:0 26px;
}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:22px;letter-spacing:-.03em}
.brand-mark{width:28px;height:28px;position:relative}
.brand-mark:before,.brand-mark:after{
  content:"";position:absolute;top:2px;width:9px;height:24px;background:#111;border-radius:6px;
}
.brand-mark:before{left:5px;transform:rotate(-28deg)}
.brand-mark:after{right:5px;transform:rotate(28deg)}
.nav-right{display:flex;align-items:center;gap:18px}
.help{font-size:13px;color:#50545d}
.avatar{width:42px;height:42px;border-radius:50%;background:#efefed;display:grid;place-items:center;font-weight:700}

.shell{padding:18px 0 48px}
.builder-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:start}
.panel{
  background:#fff;border:1px solid var(--line);border-radius:28px;
  box-shadow:0 12px 45px rgba(0,0,0,.035);
}
.form-panel{padding:34px}
.preview-panel{padding:18px;position:sticky;top:108px}

.step{display:grid;grid-template-columns:48px 1fr;gap:18px;padding:8px 0 24px}
.step + .step{border-top:1px solid #ededeb;padding-top:26px}
.step-number{
  width:42px;height:42px;border-radius:50%;background:#111;color:#fff;
  display:grid;place-items:center;font-weight:800;
}
.step h2{font-size:24px;margin:2px 0 5px;letter-spacing:-.035em}
.step .hint{color:var(--muted);font-size:13px;margin-bottom:15px}

.prompt-box{
  width:100%;min-height:145px;resize:vertical;
  border:1px solid #dcdcd9;border-radius:16px;padding:18px 20px;
  outline:none;font-size:15px;line-height:1.55;background:#fff;
}
.prompt-box:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.char-count{text-align:right;font-size:11px;color:#9a9ca2;margin-top:7px}
.examples{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.chip{border:1px solid #dededc;background:#fff;border-radius:999px;padding:8px 12px;font-size:12px}

.upload-grid{display:grid;grid-template-columns:1fr 180px;gap:14px}
.dropzone{
  min-height:180px;border:1.5px dashed #cfcfcb;border-radius:16px;
  display:grid;place-items:center;text-align:center;background:#fbfbfa;padding:20px;
}
.upload-icon{font-size:28px;margin-bottom:6px}
.dropzone b{font-size:14px}.dropzone span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.file-btn{border:0;background:#ececea;border-radius:999px;padding:10px 17px;font-weight:700;margin-top:10px}
.product-thumb{border-radius:16px;overflow:hidden;position:relative;background:#e9e0d5;min-height:180px}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-thumb .remove{position:absolute;right:8px;top:8px;width:28px;height:28px;border:0;border-radius:50%;background:#111;color:white}

.type-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.type-card{
  min-height:108px;border:1px solid #dededb;border-radius:15px;background:#fff;padding:14px 10px;
  display:grid;place-items:center;text-align:center;font-size:12px;line-height:1.25;
}
.type-card i{font-style:normal;font-size:25px;display:block;margin-bottom:8px}
.type-card.selected{border:2px solid #111;box-shadow:0 0 0 2px rgba(0,0,0,.04)}
.type-grid .type-card.disabled{position:relative;opacity:.5;cursor:not-allowed;background:#fafafa}
.soon-badge{position:absolute;top:6px;right:6px;font-size:8px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;background:#ededeb;color:#71716d;padding:2px 6px;border-radius:999px}

.generate-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;margin-top:10px}
.black-btn{
  border:0;background:#111;color:#fff;border-radius:12px;padding:17px 24px;
  font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;gap:12px;
}
.time-note{font-size:11px;color:#8b8f97;white-space:nowrap}

.browser{border:1px solid #dcdcdc;border-radius:18px;overflow:hidden;background:#fff}
.browser-top{height:42px;background:#f7f7f5;border-bottom:1px solid #e5e5e2;display:flex;align-items:center;padding:0 13px;gap:6px}
.dot{width:7px;height:7px;border-radius:50%}.dot.r{background:#ff6b63}.dot.y{background:#ffc74c}.dot.g{background:#55c87a}
.browser-body{position:relative;min-height:520px;background:#f1e8de;overflow:hidden}
.preview-hero{height:360px;display:grid;grid-template-columns:.85fr 1.15fr}
.preview-copy{padding:52px 34px;background:#f5ece2}
.preview-copy .mini-brand{font-family:Georgia,serif;letter-spacing:.2em;font-size:13px}
.preview-copy h3{font-family:Georgia,serif;font-size:46px;line-height:.98;letter-spacing:-.04em;margin:36px 0 14px}
.preview-copy p{font-size:12px;color:#53565c;line-height:1.5}
.preview-copy a{display:inline-block;background:#111;color:white;border-radius:999px;padding:10px 16px;font-size:11px;margin-top:8px}
.preview-art{
  background:
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.9) 0 14%, transparent 15%),
    linear-gradient(145deg,#c8b99d,#efe5d8 60%,#b7a489);
  position:relative;
}
.jar{position:absolute;width:150px;height:128px;background:#f7f0e7;border-radius:18px 18px 12px 12px;left:50%;top:50%;transform:translate(-50%,-35%);box-shadow:0 25px 40px rgba(0,0,0,.12)}
.jar:before{content:"LUMIÈRE";position:absolute;left:0;right:0;top:54px;text-align:center;font-family:Georgia,serif;letter-spacing:.12em}
.jar:after{content:"";position:absolute;left:18px;right:18px;top:-20px;height:25px;background:#eee6dc;border-radius:10px 10px 4px 4px}
.preview-features{display:grid;grid-template-columns:repeat(3,1fr);padding:18px;background:white}
.preview-features div{text-align:center;font-size:10px;color:#50545d}

.status-card{
  margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;
}
.status-card h3{font-size:16px;margin:0 0 18px}
.status-list{display:grid;gap:14px}
.status-item{display:flex;align-items:center;gap:12px;font-size:13px}
.status-icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;border:1px solid #d5d5d2;color:#9a9da4}
.status-icon.done{background:#111;border-color:#111;color:#fff}
.status-icon.spin{border:2px solid #111;border-right-color:transparent;animation:spin 1s linear infinite}
.status-icon.failed{background:#fdecea;border-color:#e45c4e;color:#c0392b;font-weight:800;}
@keyframes spin{to{transform:rotate(360deg)}}

.progress-bar{height:8px;background:#ececea;border-radius:999px;overflow:hidden;margin:20px 0 8px}
.progress-bar i{display:block;height:100%;width:62%;background:#111;border-radius:999px;animation:progress 4s ease-in-out infinite alternate}
@keyframes progress{from{width:38%}to{width:82%}}

.complete-badge{
  position:absolute;right:16px;top:16px;background:white;border:1px solid #dededb;border-radius:12px;
  padding:10px 12px;font-size:11px;box-shadow:0 10px 25px rgba(0,0,0,.08)
}

.done-panel{text-align:center;padding:34px}
.done-icon{width:66px;height:66px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-size:30px;margin:0 auto 18px}
.done-panel h1{font-size:36px;letter-spacing:-.045em;margin:0 0 8px}
.done-panel p{color:var(--muted);max-width:560px;margin:0 auto 22px}
.done-actions{display:flex;justify-content:center;gap:10px}
.done-actions a{padding:13px 18px;border-radius:10px;font-weight:700;font-size:13px}
.done-actions .outline{border:1px solid #d8d8d6;background:#fff}.done-actions .solid{background:#111;color:#fff}

/* ---- multi-step wizard (steps 2-6) ---- */
.wiz-progress{display:flex;gap:6px;margin-bottom:10px}
.wiz-progress span{flex:1;height:4px;border-radius:999px;background:#ececea}
.wiz-progress span.done,.wiz-progress span.active{background:#111}
.wiz-step-label{font-size:11px;color:var(--muted);margin-bottom:22px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.wiz-step h2{font-size:26px;margin:0 0 6px;letter-spacing:-.035em}
.wiz-step .hint{color:var(--muted);font-size:13px;margin-bottom:22px}
.wiz-nav{display:flex;justify-content:space-between;gap:12px;margin-top:30px}
.wiz-nav .back-btn{border:1px solid #dededc;background:#fff;border-radius:12px;padding:14px 22px;font-weight:700;font-size:14px}
.wiz-nav .black-btn{margin-left:auto}

.type-grid.type-grid-priority{grid-template-columns:repeat(3,1fr);margin-bottom:10px}
.type-grid.type-grid-more{grid-template-columns:repeat(3,1fr);opacity:.92}
.type-grid .type-card{cursor:pointer}
.type-grid-label{font-size:11px;font-weight:700;color:#9a9ca2;text-transform:uppercase;letter-spacing:.04em;margin:14px 0 8px}

.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field-grid.cols-1{grid-template-columns:1fr}
.field{margin-bottom:16px}
.field>label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.field .field-hint{font-size:11px;color:var(--muted);margin-top:5px}
.field input[type=text],.field input[type=number],.field input[type=email],.field input[type=tel],.field input[type=url],.field input[type=date],.field input[type=time],.field select,.field textarea{
  width:100%;border:1px solid #dcdcd9;border-radius:10px;padding:11px 13px;font-size:14px;background:#fff;outline:none;box-sizing:border-box;
}
.field textarea{min-height:90px;resize:vertical;font-family:inherit}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.field-section-title{font-size:15px;font-weight:800;margin:26px 0 14px;padding-top:18px;border-top:1px solid #ededeb}
.field-section-title:first-child{margin-top:0;padding-top:0;border-top:0}

.checkbox-chips{display:flex;flex-wrap:wrap;gap:8px}
.checkbox-chip{border:1px solid #dededc;background:#fff;border-radius:999px;padding:9px 14px;font-size:12px}
.checkbox-chip.on{border-color:#111;background:#111;color:#fff}

.repeat-rows{display:grid;gap:10px;margin-bottom:10px}
.repeat-row{border:1px solid var(--line);border-radius:14px;padding:16px;position:relative;background:#fbfbfa}
.repeat-row .remove-row{position:absolute;right:10px;top:10px;width:26px;height:26px;border-radius:50%;background:#ececea;font-size:13px;line-height:1}
.add-row-btn{border:1px dashed #cfcfcb;background:#fbfbfa;border-radius:12px;padding:12px;width:100%;font-weight:700;font-size:13px}

.media-recap{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.media-recap-item{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:7px 14px 7px 7px;font-size:12px;background:#fbfbfa}
.media-recap-item img{width:26px;height:26px;border-radius:50%;object-fit:cover}
.media-recap-item .swatch{width:26px;height:26px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-size:11px}

.review-section{border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin-bottom:14px}
.review-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.review-section-head h4{margin:0;font-size:14px;letter-spacing:-.01em}
.review-section-head button{font-size:12px;font-weight:700;color:#111;text-decoration:underline;background:none;border:0;padding:0}
.review-row{display:flex;justify-content:space-between;gap:16px;font-size:13px;padding:6px 0;border-top:1px solid #f1f1ef}
.review-row:first-child{border-top:0}
.review-row span:first-child{color:var(--muted);flex-shrink:0}
.review-row span:last-child{text-align:right}
.review-empty{color:var(--muted);font-size:13px;}

@media(max-width:1000px){
  .builder-layout{grid-template-columns:1fr}
  .preview-panel{position:relative;top:auto}
  .type-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .container{width:calc(100% - 20px)}
  .form-panel{padding:20px}.onb-nav{padding:0 16px}
  .help{display:none}
  .step{grid-template-columns:38px 1fr}.step-number{width:34px;height:34px;font-size:12px}
  .step h2{font-size:20px}
  .upload-grid{grid-template-columns:1fr}.product-thumb{min-height:220px}
  .type-grid{grid-template-columns:repeat(2,1fr)}
  .generate-row{grid-template-columns:1fr}.time-note{text-align:center}
  .preview-hero{grid-template-columns:1fr}.preview-art{height:280px}.preview-copy h3{font-size:38px}
  .field-grid{grid-template-columns:1fr}
  .type-grid.type-grid-priority,.type-grid.type-grid-more{grid-template-columns:repeat(2,1fr)}
  .wiz-nav{flex-wrap:wrap}.wiz-nav .black-btn{margin-left:0;width:100%}
}
