/* ============================================================
   business card maker - tool styles (Flow design system)
   Card designs themselves use the user's colors, not the site palette.
   ============================================================ */

.bcm-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.bcm-step {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--text-3); font-size: 14px;
}
.bcm-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--f-mono); background: rgba(255,255,255,.08); }
.bcm-step[aria-selected="true"] { border-color: rgba(255,214,10,.6); color: var(--text); }
.bcm-step[aria-selected="true"] .n { background: var(--accent); color: #06050a; }
.bcm-step.done .n { background: rgba(143,227,192,.18); color: var(--local); }
.bcm-step:hover { color: #fff; }

.bcm .glass { border-radius: 32px; }
.bcm-pane { display: none; }
.bcm-pane.on { display: block; animation: tt-rise .35s ease-out; }
.bcm-h2 { margin: 6px 0 4px; font: 500 28px/1.15 var(--f-display); letter-spacing: -0.03em; color: var(--text); }
.bcm-sub { margin: 0 0 22px; color: var(--text-3); font-size: 15px; }
.bcm-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bcm-foot { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bcm-fine { color: var(--faint); font-size: 13px; }
.bcm-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.bcm-hint:empty { display: none; }
.bcm-hint.warn { color: var(--accent); }
.bcm-linkbtn { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; text-decoration: underline; text-decoration-color: rgba(255,214,10,.5); text-underline-offset: 4px; cursor: pointer; }
.bcm-linkbtn:hover { color: #fff; }

/* step 1 */
.bcm-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.bcm-fmt {
  position: relative; text-align: left; border-radius: 28px; padding: 24px;
  border: 1px solid var(--line); background: rgba(22,18,34,.5); color: var(--text);
  display: flex; flex-direction: column; gap: 12px; min-height: 290px;
  transition: border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.bcm-fmt:hover { transform: translateY(-4px); }
.bcm-fmt[aria-checked="true"] { border-color: rgba(255,214,10,.7); box-shadow: inset 0 0 0 1px rgba(255,214,10,.35); }
.bcm-rec { position: absolute; top: 18px; right: 18px; font: 600 10.5px var(--f-mono); background: var(--accent); color: #06050a; border-radius: 999px; padding: 3px 9px; }
.bcm-fmt-art { height: 124px; display: grid; place-items: center; position: relative; }
.bcm-mini { display: block; width: 116px; aspect-ratio: 1.75; border-radius: 6px; background: #f7f5f0; box-shadow: 0 14px 30px -12px rgba(0,0,0,.9); }
.bcm-mini.a { position: absolute; left: calc(50% - 82px); top: 16px; }
.bcm-mini.b { position: absolute; left: calc(50% - 34px); top: 44px; background: #1b2a4a; }
.bcm-mini.wide { width: 150px; }
.bcm-mini-qr { display: block; width: 96px; height: 96px; border-radius: 14px; background: #fff; padding: 8px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.9); }
.bcm-mini-qr svg { width: 100%; height: 100%; display: block; }
.bcm-fmt-h { font: 500 24px var(--f-display); letter-spacing: -0.03em; }
.bcm-fmt-p { color: var(--text-3); font-size: 14.5px; line-height: 1.55; flex: 1; }
.bcm-fmt-tag { font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--local); }

/* step 2 */
.bcm-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 20px; }
.bcm-filters button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--text-2); }
.bcm-filters button[aria-pressed="true"] { background: var(--accent); color: #06050a; border-color: var(--accent); }
.bcm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bcm-tpl {
  text-align: left; border: 1px solid var(--line); background: rgba(22,18,34,.45); color: var(--text);
  border-radius: 24px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.bcm-tpl:hover, .bcm-tpl:focus-visible { transform: translateY(-4px); }
.bcm-tpl[aria-checked="true"] { border-color: rgba(255,214,10,.75); box-shadow: inset 0 0 0 1px rgba(255,214,10,.3); }
.bcm-tpl-pair { position: relative; }
.bcm-tpl-pair .face { border-radius: 8px; overflow: hidden; box-shadow: 0 22px 44px -22px rgba(0,0,0,.95); }
.bcm-tpl-pair .back { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.bcm-tpl:hover .bcm-tpl-pair .back, .bcm-tpl.flip .bcm-tpl-pair .back { opacity: 1; }
.bcm-tpl-h { display: flex; justify-content: space-between; align-items: baseline; font: 500 20px var(--f-display); letter-spacing: -0.02em; }
.bcm-tpl-h small { font: 400 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.bcm-tpl-for { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.bcm-inds { display: flex; flex-wrap: wrap; gap: 5px; }
.bcm-inds span { font: 400 10.5px var(--f-mono); letter-spacing: .04em; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }

/* step 3 */
.bcm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.bcm-split.single { grid-template-columns: 1fr; }
@media (max-width: 980px) { .bcm-split { grid-template-columns: 1fr; } }
.bcm-digit {
  display: flex; gap: 18px; align-items: center; margin: 14px 0 18px; padding: 18px;
  border-radius: 22px; border: 1.5px dashed rgba(255,214,10,.45);
  background: radial-gradient(80% 120% at 0% 50%, rgba(255,214,10,.08), transparent);
}
.bcm-digit.busy { border-style: solid; }
.bcm-digit-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,214,10,.12); color: var(--accent); flex: 0 0 auto; }
.bcm-digit.busy .bcm-digit-ic { animation: tt-pulse 1.2s ease-in-out infinite; }
.bcm-digit { flex-wrap: wrap; }
.bcm-digit-text { flex: 1 1 200px; min-width: 0; }
.bcm-digit-h { margin: 0 0 3px; font: italic 400 24px/1.15 var(--f-serif); color: var(--text); }
.bcm-digit-p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.bcm-digit-p.err { color: var(--accent); }
.bcm-digit-btns { flex: 1 1 100%; padding-left: 72px; }
@media (max-width: 640px) { .bcm-digit-btns { padding-left: 0; } }
@media (max-width: 640px) { .bcm-digit { flex-wrap: wrap; } }
.bcm-disc { display: flex; gap: 10px; margin: -6px 0 18px; padding: 0 4px; font-size: 12.5px; line-height: 1.55; color: #b3acc2; }
.bcm-disc strong { color: var(--text); font-weight: 500; }
.bcm-glow { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(255,214,10,.5); flex: 0 0 auto; }

.bcm-fields { display: flex; flex-direction: column; }
.bcm-f { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bcm-f > span { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tt-main .bcm-f input { background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: 0; color: var(--text); font: 16px var(--f-body); padding: 10px 0; min-width: 0; width: 100%; }
.tt-main .bcm-f input:focus { box-shadow: inset 0 -1px 0 var(--accent); }
.bcm-q { font: 500 10px var(--f-mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: transparent; white-space: nowrap; }
.bcm-q.on { background: var(--accent); border-color: var(--accent); color: #06050a; }
.bcm-q[hidden] { display: none; }
@media (max-width: 420px) { .bcm-f { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; } }

.bcm-sect { margin-top: 26px; }
.bcm-sect > .panel-label { display: block; margin-bottom: 10px; }
.bcm-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.bcm-seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); }
.bcm-seg button[aria-checked="true"] { background: var(--accent); color: #06050a; font-weight: 600; }
.bcm-seg-sm button { padding: 6px 11px; font-size: 12.5px; }
.bcm-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bcm-checks button { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; color: var(--text-2); }
.bcm-checks button .bx { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--muted); display: grid; place-items: center; font-size: 10px; line-height: 1; }
.bcm-checks button[aria-checked="true"] { border-color: rgba(255,214,10,.55); color: var(--text); background: rgba(255,214,10,.07); }
.bcm-checks button[aria-checked="true"] .bx { background: var(--accent); border-color: var(--accent); color: #06050a; }
.bcm-checks button:disabled { opacity: .4; cursor: default; }
.bcm-linkin { display: grid; gap: 8px; margin-top: 12px; }
.bcm-linkin[hidden] { display: none; }
.tt-main .bcm-linkin input { width: 100%; padding: 12px 16px; border-radius: 999px; font-family: var(--f-body); }
.bcm-meter { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.bcm-meter[hidden] { display: none; }
.bcm-bar { flex: 0 0 120px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bcm-bar i { display: block; height: 100%; width: 60%; background: var(--local); transition: width .3s, background .3s; }
.bcm-meter.warn .bcm-bar i { background: var(--accent); }
.bcm-meter.warn .bcm-meter-t { color: var(--accent); }

.bcm-swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bcm-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); padding: 0; }
.bcm-swatches button[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.bcm-swatches label.cust { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--muted); display: grid; place-items: center; color: var(--muted); font-size: 16px; cursor: pointer; overflow: hidden; }
.bcm-swatches label.cust.on { outline: 2px solid var(--accent); outline-offset: 2px; border-style: solid; }
.bcm-swatches label.cust input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bcm-fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.bcm-fonts button { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 14px; padding: 10px 12px; text-align: left; color: var(--text); font-size: 17px; }
.bcm-fonts button small { display: block; font: 400 10px var(--f-mono); color: var(--muted); margin-top: 2px; letter-spacing: .04em; }
.bcm-fonts button[aria-checked="true"] { border-color: rgba(255,214,10,.6); background: rgba(255,214,10,.07); }
@media (max-width: 640px) { .bcm-fonts { grid-template-columns: 1fr 1fr; } }

.bcm-logo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bcm-logo-box { width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.bcm-logo-box img { max-width: 40px; max-height: 40px; object-fit: contain; }
.bcm-logo-box .mono { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--f-display); color: #fff; }

.bcm-prevwrap { position: sticky; top: 70px; }
.bcm-flip { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bcm-stack { display: flex; flex-direction: column; gap: 16px; }
.bcm-face { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.95); }
.bcm-face-l { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* step 4 */
.bcm-final { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bcm-final.one { grid-template-columns: minmax(0, 560px); }
@media (max-width: 760px) { .bcm-final { grid-template-columns: 1fr; } }
.bcm-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.bcm-dlc { border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.035); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bcm-dlc h3 { margin: 0; font: 500 18px var(--f-display); color: var(--text); letter-spacing: -0.02em; }
.bcm-dlc p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.5; flex: 1; }
.bcm-tick { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
.btn.busy { opacity: .6; pointer-events: none; }

/* digital */
.bcm-dq-prev { display: flex; flex-direction: column; gap: 14px; }
.bcm-dq-box { width: min(360px, 100%); margin: 6px auto; }
.bcm-dq-box svg { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.95); }

.print-only, .digital-only { }
body.is-digital .print-only { display: none !important; }
body:not(.is-digital) .digital-only { display: none !important; }

.bcm-how { margin-top: 12px; }
.bcm-how[hidden] { display: none; }
.bcm-how .bcm-tick { align-items: flex-start; margin-top: 10px; line-height: 1.45; }
.bcm-how .bcm-tick input { margin-top: 2px; flex: 0 0 auto; }

/* logo preview on a checkerboard so a removed background (or a white logo) is visible */
.bcm-logo-box.has-logo { background: #fff repeating-conic-gradient(#e6e6ea 0% 25%, #fff 0% 50%) 50% / 12px 12px; }
.bcm-logo-bg { margin-top: 12px; }
.bcm-logo-bg[hidden] { display: none; }

/* describe your business -> suggested templates */
.bcm-suggest { margin: 4px 0 18px; }
.bcm-suggest-row { position: relative; margin-top: 8px; }
.bcm-suggest-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.bcm-suggest input { width: 100%; min-height: 50px; padding: 0 18px 0 44px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.14)); background: rgba(255,255,255,.04); color: var(--text); font: 400 15px var(--f-body, inherit); }
.bcm-suggest input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,214,10,.18); }
.bcm-suggest input::placeholder { color: var(--faint); }
#biz-out button { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bcm-tpl .bcm-fit { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #111; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.bcm-tpl .bcm-fit.good { background: rgba(255,255,255,.9); }
.bcm-tpl.dim { opacity: .55; }
.bcm-tpl.dim:hover, .bcm-tpl.dim[aria-checked="true"] { opacity: 1; }
.bcm-tpl { position: relative; }

/* portrait templates: front and back side by side in the gallery, previews and final step */
.bcm-tpl.portrait .bcm-tpl-pair { display: flex; justify-content: center; gap: 10px; aspect-ratio: 88.9 / 50.8; }
.bcm-tpl.portrait .bcm-tpl-pair .face { position: static; opacity: 1; height: 100%; aspect-ratio: 50.8 / 88.9; width: auto; }
.bcm-tpl.portrait .bcm-tpl-pair .face svg { height: 100%; width: 100%; }
.bcm-stack.portrait { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 220px)); justify-content: center; gap: 16px; }
.bcm-stack.portrait > div:only-child { grid-column: 1 / -1; max-width: 240px; justify-self: center; }
.bcm-final.portrait { grid-template-columns: repeat(auto-fit, minmax(0, 260px)); justify-content: center; }
@media (max-width: 760px) { .bcm-final.portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
