/* custom.logofactory.se — Starta projekt (kepsar & mössor)
   Mörk, exklusiv riktning — matchar beslutad stil för logofactory.se */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A0C;
  --panel: #131315;
  --panel-2: #17171A;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --ink: #F5F4F1;
  --ink-dim: #9B9BA1;
  --ink-faint: #6E6E73;
  --ink-ghost: #5C5C61;
  --accent: #D6202E;
  --accent-hover: #E8404C;
  --accent-soft: rgba(214,32,46,0.12);
  --accent-soft-border: rgba(214,32,46,0.35);
  --radius-card: 14px;
  --radius-panel: 20px;
  --radius-pill: 100px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --max-w: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
svg { display: block; flex-shrink: 0; }
::placeholder { color: var(--ink-ghost); }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 40px;
}
.nav__logo {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  letter-spacing: 0.12em; color: var(--ink);
}
.pill-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); color: var(--ink);
  font-size: 14px; font-weight: 500; background: transparent;
}
.pill-ghost:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); }

/* ---------- Sub-bar (back + project badge) ---------- */
.subbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 0 40px 26px;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 14px; background: none; border: none; padding: 0; }
.back-link:hover { color: var(--ink); }
.divider-v { width: 1px; height: 16px; background: var(--border-strong); }
.badge-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-border);
  color: var(--ink); padding: 5px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 12.5px;
}

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; padding: 0 40px 36px; }
.step { display: flex; align-items: center; gap: 10px; }
.step__circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  border: 1px solid var(--border-strong); color: var(--ink-faint);
  flex-shrink: 0;
}
.step__label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }
.step__line { flex: 1; height: 1px; background: var(--border-strong); margin: 0 20px; }
.step.is-done .step__circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.is-done .step__label { color: #C7C7CC; }
.step.is-active .step__circle { border-color: var(--accent); color: var(--accent); }
.step.is-active .step__label { color: var(--ink); }
.step__line.is-done { background: var(--accent); }
.step[data-jump] { background: none; border: none; padding: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 82% 8%, rgba(214,32,46,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at -5% 90%, rgba(199,199,204,0.06), transparent 60%);
}
.hero__grid { display: flex; gap: 56px; padding: 20px 40px 0; align-items: flex-start; position: relative; }
.hero__main { flex: 1 1 560px; max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 22px;
}
.h1 { font-weight: 700; font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; }
.lede { font-size: 17px; line-height: 1.65; color: var(--ink-dim); margin: 0 0 32px; max-width: 520px; }

.type-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-dim); text-transform: uppercase; margin-bottom: 14px; }
.type-select { display: flex; gap: 16px; margin-bottom: 32px; }
.type-card {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px; position: relative; text-align: left;
  color: var(--ink); font-family: var(--font-body);
}
.type-card svg { stroke: var(--ink-dim); }
.type-card__photo {
  height: 96px; background: #EDEBE6; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden;
}
.type-card__photo img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.type-card.is-selected .type-card__photo { background: #F5F4F1; }
.type-card__name { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-top: 14px; }
.type-card__desc { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.type-card.is-selected { background: var(--panel); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.type-card.is-selected svg { stroke: var(--ink); }
.check-badge {
  position: absolute; top: 16px; right: 16px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); display: none;
  align-items: center; justify-content: center;
}
.type-card.is-selected .check-badge { display: flex; }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; padding: 16px 30px;
  border-radius: var(--radius-pill); border: none;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink); padding: 14px 26px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.hint { font-size: 13px; color: var(--ink-faint); }

.process-card { flex: 0 0 360px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 32px; margin-top: 4px; position: relative; }
.process-title { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 22px; }
.process-item { display: flex; gap: 16px; margin-bottom: 24px; }
.process-item:last-child { margin-bottom: 0; }
.process-num { flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #C7C7CC; }
.process-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.process-desc { font-size: 13px; color: var(--ink-faint); margin-top: 2px; line-height: 1.5; }

.trust-strip { display: flex; gap: 40px; flex-wrap: wrap; padding: 44px 40px 40px; border-top: 1px solid var(--border); margin-top: 48px; }
.trust-strip span { color: var(--ink-faint); font-size: 13px; }
.trust-strip strong { color: var(--ink); font-weight: 600; }

/* ---------- Content layout (fabric / decoration / details) ---------- */
.content-grid { display: flex; gap: 44px; padding: 0 40px 64px; align-items: flex-start; }
.content-main { flex: 1; min-width: 0; }
.h2 { font-weight: 700; font-size: 30px; margin: 0 0 10px; }
.sub { font-size: 15px; color: var(--ink-dim); margin: 0 0 26px; max-width: 560px; line-height: 1.6; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  color: #C7C7CC; font-size: 13px; font-weight: 500; background: transparent;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.fabric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.deco-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

.fabric-card, .deco-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px; position: relative; text-align: left; color: var(--ink); font-family: var(--font-body);
}
.deco-card { padding: 20px; }
.fabric-card.is-selected, .deco-card.is-selected { border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fabric-card .check-badge, .deco-card .check-badge { top: 10px; right: 10px; width: 20px; height: 20px; }
.deco-card .check-badge { top: 14px; right: 14px; }
.swatch { height: 72px; border-radius: 9px; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.fabric-card__name { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; margin-top: 12px; }
.fabric-card__tag { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.deco-card svg { stroke: #C7C7CC; }
.deco-card.is-selected svg { stroke: var(--accent); }
.deco-card__photo {
  height: 72px; margin: -20px -20px 12px -20px; overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0; background: #EDEBE6;
}
.deco-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deco-card__photo.is-placeholder { display: flex; align-items: center; justify-content: center; }
.deco-card__photo.is-placeholder svg { stroke: #B9B4AA; opacity: 0.55; }
.deco-card.is-selected .count-badge {
  display: flex; font-family: var(--font-head); font-weight: 700; font-size: 12px; color: #fff;
}
.technique-card__code { font-family: "Space Grotesk", monospace; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; opacity: 0.75; }
.deco-back-link { margin-bottom: 16px; }
.deco-card__name { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-top: 14px; }
.deco-card__desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; line-height: 1.5; }

.more-tile {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-card); background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 130px; color: var(--ink);
}
.more-tile__title { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.more-tile__sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.more-note { font-size: 13px; color: var(--ink-faint); margin-top: 20px; }

/* ---------- Sidebar ---------- */
.sidebar { flex: 0 0 320px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 28px; position: sticky; top: 24px; }
.sidebar__title { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 18px; }
.sidebar__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar__row:last-of-type { border-bottom: none; }
.sidebar__row .k { font-size: 13px; color: var(--ink-faint); }
.sidebar__row .v { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }
.sidebar__chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sidebar__chips .badge { font-size: 11.5px; padding: 4px 11px; }
.sidebar__empty { color: var(--ink-ghost); font-weight: 500; }
.sidebar .btn-primary { width: 100%; justify-content: center; margin-top: 20px; }
.sidebar__note { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ---------- Detail cards (screen 4) ---------- */
.detail-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 26px; margin-bottom: 18px; }
.detail-card__title { font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-controls { display: flex; align-items: center; gap: 16px; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: #C7C7CC; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--ink-dim); }
.qty-value { font-family: var(--font-head); font-weight: 700; font-size: 20px; min-width: 52px; text-align: center; border: none; background: transparent; color: var(--ink); }

.dropzone {
  border: 1px dashed var(--border-strong); border-radius: 12px; padding: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { stroke: var(--ink-faint); }
.dropzone__text { font-size: 13px; color: var(--ink-dim); }
.dropzone__text b { color: var(--accent); font-weight: 600; cursor: pointer; }
.dropzone__hint { font-size: 11.5px; color: var(--ink-ghost); }
.file-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent-soft-border); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 12.5px; margin-top: 12px; }
.file-chip button { background: none; border: none; color: var(--ink-dim); font-size: 14px; line-height: 1; }

textarea, input[type=text], input[type=email], input[type=tel] {
  width: 100%; background: transparent; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink); font-family: var(--font-body);
}
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field__label { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 7px; }
.field__error { font-size: 12px; color: var(--accent); margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field.has-error .field__error { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.placement-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Submit states ---------- */
.form-status { font-size: 13px; margin-top: 14px; text-align: center; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: var(--accent); }
.form-status.is-success { color: #7FD98C; }

.success-panel { text-align: center; padding: 90px 40px 120px; }
.success-panel svg { margin: 0 auto 24px; stroke: var(--accent); }
.success-panel h2 { font-size: 30px; margin-bottom: 12px; }
.success-panel p { color: var(--ink-dim); max-width: 460px; margin: 0 auto; line-height: 1.6; }

/* ---------- Utility ---------- */
.screen { display: none; }
.screen.is-active { display: block; }
[data-icon] svg { stroke: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { flex-direction: column; }
  .process-card { flex: 1 1 auto; width: 100%; }
  .content-grid { flex-direction: column; }
  .sidebar { width: 100%; position: static; order: -1; }
  .fabric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .deco-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nav, .subbar, .stepper, .hero__grid, .content-grid, .trust-strip { padding-left: 22px; padding-right: 22px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 25px; }
  .type-select { flex-direction: column; }
  .fabric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .deco-grid { grid-template-columns: 1fr; }
  .step__label { display: none; }
  .step__line { margin: 0 8px; }
  .trust-strip { gap: 16px 28px; }
}
