/* Brief builder. Extends style.css. */

.builder { padding: 42px 28px 150px; max-width: 900px; }

/* progress */
.steps {
  list-style: none; display: flex; gap: 6px; flex-wrap: wrap;
  padding: 0; margin: 0 0 44px; font-size: 13px; color: var(--ink-soft);
}
.steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 7px; border-radius: 999px; border: 1px solid transparent;
  transition: all .25s var(--ease);
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-soft); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
}
.steps li.on { border-color: var(--line); background: #fff; color: var(--ink); }
.steps li.on span { background: var(--accent); color: #fff; border-color: transparent; }
.steps li.done span { background: var(--ink); color: var(--paper); border-color: transparent; }
@media (max-width: 700px) { .steps li { font-size: 0; padding: 6px; } .steps li span { font-size: 12px; } }

.pane h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 12px 0 12px; letter-spacing: -.025em; }
.pane .lede { color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; font-size: 17px; }
.hint { color: var(--ink-soft); font-size: 14.5px; margin-top: 20px; }
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; cursor: pointer;
}

/* category cards */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  font: inherit; transition: all .25s var(--ease);
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,14,12,.1); }
.cat[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.cat .thumb { aspect-ratio: 4/3; background: var(--paper-2); position: relative; overflow: hidden; }
.cat .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat .lbl { padding: 13px 15px 15px; }
.cat .lbl strong { display: block; font-weight: 600; font-size: 15.5px; }
.cat .lbl span { color: var(--ink-soft); font-size: 13px; }
.cat .tick {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--ink); color: #fff;
  display: none; place-items: center; font-size: 13px;
}
.cat[aria-pressed="true"] .tick { display: grid; }

/* reference lens picker */
.ref-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ref {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; background: #fff; padding: 0;
  aspect-ratio: 9/16; font: inherit; transition: all .22s var(--ease);
}
.ref:hover { transform: translateY(-3px); }
.ref[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.ref img, .ref video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Same explicit-stacking fix as the home page bento: the video is inserted
   as this button's FIRST child, so without a z-index the poster <img> -
   later in the DOM - can paint over it regardless of opacity, in some
   browsers and not others. */
.ref video { z-index: 1; opacity: .92; transition: opacity .3s; }
.ref img { z-index: 0; }
.ref video.ready { opacity: 1; }
.ref .rl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: #fff; font-size: 12.5px; text-align: left;
}
.ref .tick {
  position: absolute; top: 9px; right: 9px; width: 24px; height: 24px;
  z-index: 2;
  border-radius: 50%; background: #fff; color: var(--ink);
  display: none; place-items: center; font-size: 13px; font-weight: 700;
}
.ref[aria-pressed="true"] .tick { display: grid; }
.ref.needs-tap::after {
  content: ""; position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14,14,12,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 18px;
  pointer-events: none;
}

/* fields */
.field { margin-bottom: 20px; max-width: 640px; }
.field label { display: block; font-size: 14px; margin-bottom: 7px; font-weight: 500; }
.field .req { color: var(--accent); font-weight: 400; font-size: 12px; margin-left: 4px; }
.field .opt { color: var(--ink-soft); font-weight: 400; font-size: 12px; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 13px 15px; font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field input.bad, .field textarea.bad { border-color: #c0341a; }
.count { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* dropzone */
.drop {
  border: 1.5px dashed var(--line); border-radius: 16px; background: #fff;
  padding: 46px 20px; text-align: center; cursor: pointer;
  transition: all .22s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent); background: #fffaf8; }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-in strong { display: block; font-size: 17px; margin-bottom: 5px; }
.drop-in span { color: var(--ink-soft); font-size: 14px; }

.files { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.files li {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px;
}
.files li img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.files li .fn { flex: 1; min-width: 0; }
.files li .fn b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .fn span { font-size: 12.5px; color: var(--ink-soft); }
.files li .rm {
  border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  font-size: 19px; padding: 4px 8px; border-radius: 8px;
}
.files li .rm:hover { color: #c0341a; background: var(--paper-2); }
.files li.bad { border-color: #e8b4a8; background: #fff8f6; }
.files li.bad .fn span { color: #c0341a; }

/* plans */
.who { margin-top: 34px; max-width: 640px; }

/* contact options */
.opts { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); margin-bottom: 26px; }
.opt-card {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 18px; text-align: left; cursor: pointer; font: inherit;
  transition: all .22s var(--ease);
}
.opt-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.opt-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.opt-card strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.opt-card span { color: var(--ink-soft); font-size: 13.5px; }

.ok { color: #1c7a3e; font-size: 14.5px; min-height: 20px; }
.err { color: #c0341a; font-size: 14.5px; min-height: 20px; }
.wait { color: var(--ink-soft); font-size: 14.5px; min-height: 20px; }

/* sticky action bar — item 11 on the checklist, and it matters most on phones */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(247,246,243,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 14px 28px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px;
}
.bar .bar-mid { flex: 1; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
@media (max-width: 620px) {
  .bar .bar-mid { display: none; }
  .bar .btn { flex: 1; }
}

/* spinner for loading states — checklist item 12 */
.spin {
  width: 16px; height: 16px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: sp .8s linear infinite; display: inline-block; vertical-align: -3px;
  margin-right: 7px;
}
@keyframes sp { to { transform: rotate(360deg); } }
