/* nirman-welcome.css - the welcome on the listing pages (UI-158, his asks 5-6 Oct: "make it more welcoming and
   attractive", then "why are there no images? graphical UI, something or hook to make them sign up?").
   One source for join.html, trader-join.html, business.html and members-join.html: the drafting-sheet hero
   (DESIGN.md), a technical drawing that plots itself in once, numbered balloons with a key, the hook (a live preview
   of the visitor's own listing), a title block of plain facts, and a numbered "what happens next".
   Every colour falls back to the DESIGN.md value, because the four pages do not define the same tokens.
   Everything is visible without the animations; reduced motion turns them off. */
:root {
  --wl-sheet: #fdfbf4;
  --wl-grid: rgba(3, 105, 161, 0.05);
  --wl-frame: rgba(28, 17, 8, 0.16);
}
[data-theme='dark'] {
  --wl-sheet: #181612;
  --wl-grid: rgba(237, 233, 227, 0.04);
  --wl-frame: rgba(237, 233, 227, 0.15);
}

.wl-hero {
  background-color: var(--wl-sheet);
  background-image:
    linear-gradient(var(--wl-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--wl-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  border-bottom: 1px solid var(--line, rgba(28, 17, 8, 0.08));
  padding: 26px 16px 28px;
}
.wl-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.wl-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-d, #a33d07);
  margin-bottom: 10px;
}
.wl-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 600;
  color: var(--ink, #1c1108);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.wl-title em {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: var(--saffron, #d4500a);
}
.wl-lede {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2, #3d2a18);
  max-width: 52ch;
  text-wrap: pretty;
}

/* the drawing: plain SVG paths with pathLength="1", so one dash animation plots any of them */
.wl-drawing {
  margin: 18px 0 0;
}
.wl-drawing svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
}
.wl-dw {
  fill: none;
  stroke: var(--ink-3, #6b5040);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: wl-draw 1.4s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}
.wl-soft {
  stroke: var(--ink-4, #9c8070);
  stroke-width: 0.8;
}
.wl-fill {
  fill: var(--surface-1, #fff);
}
.wl-tint {
  fill: var(--surface-3, #ebe3d8);
}
.wl-dim {
  stroke: var(--ink-4, #9c8070);
  stroke-width: 0.8;
}
.wl-dimtext {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  fill: var(--ink-3, #6b5040);
  text-anchor: middle;
  animation: wl-fade 0.6s ease-out 0.9s both;
}
.wl-g2 .wl-dw {
  animation-delay: 0.25s;
}
.wl-g3 .wl-dw {
  animation-delay: 0.5s;
}
.wl-g4 .wl-dw {
  animation-delay: 0.75s;
}
.wl-balloon {
  transform-box: fill-box;
  transform-origin: center;
  animation: wl-pop 0.45s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}
.wl-balloon circle {
  fill: var(--surface-1, #fff);
  stroke: var(--saffron, #d4500a);
  stroke-width: 1.3;
}
.wl-balloon path {
  fill: none;
  stroke: var(--saffron, #d4500a);
  stroke-width: 0.9;
}
.wl-balloon text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--saffron-d, #a33d07);
  text-anchor: middle;
  dominant-baseline: central;
}
.wl-key {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
}
.wl-key li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2, #3d2a18);
}
.wl-key b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.3px solid var(--saffron, #d4500a);
  border-radius: 50%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--saffron-d, #a33d07);
}
.wl-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3, #6b5040);
}

/* the hook: the visitor's own listing, filling in as they type */
.wl-try {
  background: var(--surface-1, #fff);
  border: 1px solid var(--wl-frame);
  box-shadow: 0 4px 12px rgba(28, 17, 8, 0.08);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 18px 16px 16px;
}
.wl-try h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #1c1108);
  margin: 0 0 12px;
}
.wl-field-label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #6b5040);
  margin-bottom: 6px;
}
.wl-input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line-2, rgba(28, 17, 8, 0.14));
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink, #1c1108);
  background: var(--surface-1, #fff);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.wl-input:focus {
  outline: none;
  border-color: var(--saffron, #d4500a);
}
.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.wl-chip {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wl-frame);
  border-radius: 3px;
  background: var(--surface-1, #fff);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3, #6b5040);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.wl-chip:hover {
  border-color: var(--saffron, #d4500a);
  color: var(--saffron-d, #a33d07);
}
.wl-chip[aria-pressed='true'] {
  background: var(--saffron, #d4500a);
  border-color: var(--saffron, #d4500a);
  color: #fff;
}
/* the preview card: the directory card, drawn the way its own page draws it */
.wl-card {
  border: 1px solid var(--line-2, rgba(28, 17, 8, 0.14));
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-1, #fff);
  box-shadow: 0 1px 3px rgba(28, 17, 8, 0.06);
}
.wl-card-top {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3, #ebe3d8);
  color: var(--ink-4, #9c8070);
}
.wl-card-badge,
.wl-card-new {
  position: absolute;
  top: 8px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.wl-card-badge {
  left: 8px;
  background: var(--green, #1e6b42);
}
.wl-card-new {
  right: 8px;
  background: rgba(28, 17, 8, 0.85);
}
.wl-card-body {
  padding: 12px 14px 14px;
}
.wl-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--saffron-d, #a33d07);
  margin-bottom: 2px;
}
.wl-card-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #1c1108);
  overflow-wrap: anywhere;
  min-height: 1.2em;
}
.wl-card-name .ph {
  color: var(--ink-4, #9c8070);
  font-style: italic;
  font-weight: 600;
}
.wl-card-name.has .ph {
  display: none;
}
.wl-card-meta {
  font-size: 11px;
  color: var(--ink-3, #6b5040);
  margin: 4px 0 10px;
}
.wl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
}
.wl-card-tags:empty {
  display: none;
}
.wl-card-tags span {
  background: var(--surface-2, #f3ede5);
  color: var(--ink-3, #6b5040);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--line, rgba(28, 17, 8, 0.08));
}
/* the card's own button, drawn quieter than the real one below it */
.wl-card-btn {
  display: block;
  text-align: center;
  border: 1.5px solid var(--saffron, #d4500a);
  color: var(--saffron-d, #a33d07);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px;
}
.wl-go {
  width: 100%;
  margin-top: 14px;
}

/* the dealer's hook: the enquiry alert, worded as the server sends it ("Hello <shop>! New enquiry on NirmanDost
   from ...: <materials>. Login to reply: ...") - their own shop name and material, nothing invented */
.wl-alert {
  background: var(--surface-2, #f3ede5);
  border: 1px solid var(--line, rgba(28, 17, 8, 0.08));
  border-radius: 14px;
  padding: 12px;
}
.wl-alert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3, #6b5040);
  margin-bottom: 8px;
}
.wl-alert-head svg {
  color: #1da851;
  flex-shrink: 0;
}
.wl-bubble {
  background: var(--surface-1, #fff);
  border-radius: 4px 12px 12px 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #1c1108);
  box-shadow: 0 1px 2px rgba(28, 17, 8, 0.08);
  overflow-wrap: anywhere;
}
.wl-bubble p {
  margin: 0;
}
.wl-bubble p + p {
  margin-top: 6px;
}
.wl-bubble .ph {
  color: var(--ink-4, #9c8070);
  font-style: italic;
}
.wl-bubble .has .ph {
  display: none;
}
.wl-bubble-link {
  color: var(--saffron-d, #a33d07);
  font-size: 12.5px;
}

/* the plain facts: a title block, 2 x 2 on a phone, one row on a desk */
.wl-facts {
  grid-column: 1/-1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-1, #fff);
  border: 1px solid var(--wl-frame);
  box-shadow: 0 4px 12px rgba(28, 17, 8, 0.08);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.wl-fact {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, rgba(28, 17, 8, 0.08));
}
.wl-fact:nth-child(odd) {
  border-right: 1px solid var(--line, rgba(28, 17, 8, 0.08));
}
.wl-fact:nth-child(n + 3) {
  border-bottom: 0;
}
.wl-facts dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #6b5040);
  margin-bottom: 4px;
}
.wl-facts dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink, #1c1108);
  line-height: 1.4;
}

/* what happens next: a real sequence, so it is numbered */
.wl-how {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0 16px 8px;
}
.wl-how h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #1c1108);
  margin: 0 0 10px;
}
.wl-how ol {
  list-style: none;
  counter-reset: wl-how;
  border-top: 1px solid var(--line-2, rgba(28, 17, 8, 0.14));
  margin: 0;
  padding: 0;
}
.wl-how li {
  counter-increment: wl-how;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2, rgba(28, 17, 8, 0.14));
  font-size: 14px;
  color: var(--ink-2, #3d2a18);
  line-height: 1.5;
}
.wl-how li::before {
  content: counter(wl-how, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--saffron-d, #a33d07);
}

/* one entrance on load, staggered within the hero */
@keyframes wl-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes wl-draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes wl-pop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
}
@keyframes wl-fade {
  from {
    opacity: 0;
  }
}
.wl-copy > *,
.wl-try,
.wl-fact {
  animation: wl-rise 0.55s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}
.wl-copy > :nth-child(2) {
  animation-delay: 0.06s;
}
.wl-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.wl-copy > :nth-child(4) {
  animation-delay: 0.18s;
}
.wl-try {
  animation-delay: 0.2s;
}
.wl-fact:nth-child(1) {
  animation-delay: 0.3s;
}
.wl-fact:nth-child(2) {
  animation-delay: 0.36s;
}
.wl-fact:nth-child(3) {
  animation-delay: 0.42s;
}
.wl-fact:nth-child(4) {
  animation-delay: 0.48s;
}
@media (prefers-reduced-motion: reduce) {
  .wl-copy > *,
  .wl-try,
  .wl-fact,
  .wl-dw,
  .wl-balloon,
  .wl-dimtext {
    animation: none;
  }
}

@media (min-width: 900px) {
  .wl-hero {
    padding: 44px 16px 40px;
  }
  .wl-hero-inner,
  .wl-how {
    max-width: 1000px;
  }
  .wl-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 28px 44px;
  }
  .wl-facts {
    grid-template-columns: repeat(4, 1fr);
  }
  .wl-fact,
  .wl-fact:nth-child(n) {
    border-bottom: 0;
    border-right: 1px solid var(--line, rgba(28, 17, 8, 0.08));
  }
  .wl-fact:last-child {
    border-right: 0;
  }
}

/* UI-160 (his ask 7 Oct: "one clean gap free listing system so users never get confused"): the front door asks
   "What do you do?" - four doors, numbered like the balloons on the drawing above them. A choice is a whole link, so
   the touch target is the card; focus shows inside the notched sheet (clip-path would clip an outline). */
.wl-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wl-choice {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 3px 12px;
  align-items: start;
  padding: 16px;
  background: var(--surface-1, #fff);
  border: 1px solid var(--wl-frame);
  box-shadow: 0 4px 12px rgba(28, 17, 8, 0.08);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s cubic-bezier(0.05, 0.7, 0.1, 1);
}
.wl-choice:hover {
  border-color: var(--saffron, #d4500a);
  transform: translateY(-2px);
}
.wl-choice:focus-visible {
  outline: none;
  border-color: var(--saffron, #d4500a);
  box-shadow: inset 0 0 0 2px var(--saffron, #d4500a);
}
.wl-choice b {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--saffron, #d4500a);
  border-radius: 50%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--saffron-d, #a33d07);
}
.wl-choice-t {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink, #1c1108);
}
.wl-choice-e {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #3d2a18);
}
.wl-choice-go {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--saffron-d, #a33d07);
}
.wl-choice-go::after {
  content: ' \2192';
}
.wl-already {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3, #6b5040);
}
.wl-already a,
.wl-caption a {
  color: var(--saffron-d, #a33d07);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wl-choices li {
  animation: wl-rise 0.55s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}
.wl-choices li:nth-child(1) {
  animation-delay: 0.14s;
}
.wl-choices li:nth-child(2) {
  animation-delay: 0.2s;
}
.wl-choices li:nth-child(3) {
  animation-delay: 0.26s;
}
.wl-choices li:nth-child(4) {
  animation-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .wl-choices li {
    animation: none;
  }
  .wl-choice {
    transition: none;
  }
}
