/* =====================================================================
   Shared components used on every page: buttons, form fields, dialogs,
   the list-your-business nav. Loaded right after style.css.
   ===================================================================== */
.ic { flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--beige); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #dcdcda; }
.btn-light:hover { box-shadow: inset 0 0 0 1px #9a9a9f; }
.btn-block { width: 100%; }
.btn-mint-text { color: var(--mint); }
.btn-arrow { padding: 0 6px 0 26px; gap: 14px; }
.btn-arrow .arr { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; transition: transform .15s; }
.btn-arrow:hover .arr { transform: translateX(2px); }
.btn-yellow { background: #ffe14d; color: var(--ink); }
.btn-yellow:hover { background: #ffd71a; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Labels & pills ---------- */
.kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; color: #8d8d90; }
.pill-mint {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid #8fe6dc; background: var(--mint-soft); color: var(--teal-dark);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 500;
}
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 1.3px var(--ink); display: inline-grid; place-items: center; color: var(--ink); flex-shrink: 0; }

/* ---------- Form fields ---------- */
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field-label.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 500; color: #8d8d90; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid #e3e3e1; border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2377777b' d='M7 9.5h10l-5 6z'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
}
.input::placeholder, .textarea::placeholder { color: #a8a8ad; }
.input.bad, .textarea.bad, .select.bad { border-color: #dc2626; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(125,243,234,.35); }
.or-line { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #9a9a9f; font-size: 10px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #e8e8e6; }

/* ---------- Whole-card links on featured cards ---------- */
.card { position: relative; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .claim { z-index: 2; }

/* ---------- Nav additions ---------- */
.nav-links .nav-strong { font-weight: 700; color: var(--ink); }
.nav-actions .signin { font-size: 15px; font-weight: 500; }
.flow-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.step-pill { padding: 8px 15px; border-radius: 999px; border: 1px solid #8fe6dc; background: var(--mint-soft); color: var(--teal-dark); font-size: 11px; font-weight: 500; }
.flow-help { font-size: 15px; color: var(--ink-2); }
.flow-help:hover { color: var(--teal); }
.nav-flow .btn { height: 44px; padding: 0 24px; }
.nav-flow .pill-dark { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--mint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; }

/* ---------- Dialogs ---------- */
body.modal-open { overflow: hidden; }
/* margin:auto centres the card when it fits and lets it start at the top (scrollable) when it is taller than the screen */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center; padding: 24px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(28,28,30,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.modal-card { position: relative; width: 100%; margin: auto 0; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #555; transition: background .15s; }
.modal-x:hover { background: var(--beige); color: var(--ink); }

/* Voice search */
.voice-card { max-width: 460px; padding: 36px 32px 30px; text-align: center; border-radius: 20px; }
.voice-orb { width: 122px; height: 122px; margin: 0 auto; border-radius: 50%; background: #e3fcf8; display: grid; place-items: center; }
.voice-orb span { width: 66px; height: 66px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 2px var(--ink); display: grid; place-items: center; }
.is-listening .voice-orb { animation: orb 1.6s ease-in-out infinite; }
@keyframes orb { 50% { box-shadow: 0 0 0 14px rgba(125,243,234,.25); } }
.voice-card h2 { margin: 18px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.voice-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.voice-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 26px; margin-top: 22px; }
.voice-bars i { width: 4px; height: 8px; border-radius: 2px; background: var(--ink); transform-origin: bottom; }
.voice-bars i:nth-child(2) { height: 13px; }
.voice-bars i:nth-child(3) { height: 18px; }
.voice-bars i:nth-child(4) { height: 24px; }
.voice-bars i:nth-child(5) { height: 16px; }
.voice-bars i:nth-child(6) { height: 20px; }
.voice-bars i:nth-child(7) { height: 12px; }
.is-listening .voice-bars i { animation: bar .9s ease-in-out infinite; }
.is-listening .voice-bars i:nth-child(2n) { animation-delay: .15s; }
.is-listening .voice-bars i:nth-child(3n) { animation-delay: .3s; }
@keyframes bar { 50% { transform: scaleY(.45); } }
.voice-text { margin: 12px 0 0; min-height: 22px; font-size: 15px; font-weight: 600; color: #4b4b50; }
.voice-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.voice-actions .btn { min-width: 110px; height: 46px; }

/* All categories */
.cat-modal { display: flex; flex-direction: column; max-width: 1060px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; }
.cm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 32px 36px 22px; border-bottom: 1px solid #ececea; }
.cm-head h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.cm-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cm-head .modal-x { position: static; width: 42px; height: 42px; box-shadow: inset 0 0 0 1px #e3e3e1; }
.cm-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 36px 32px; }
.cm-search { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid #e3e3e1; border-radius: 10px; background: #f3f3f2; color: #8d8d90; box-shadow: 0 0 0 20px #fff; }
.cm-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.cm-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 10px; border: 1px solid #e3e3e1; border-radius: 10px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.cm-item[hidden] { display: none; }
.cm-item:hover { border-color: #8fe6dc; box-shadow: 0 6px 16px -10px rgba(0,0,0,.25); }
.cm-ic { width: 32px; height: 32px; border-radius: 7px; background: var(--mint); display: grid; place-items: center; color: var(--ink); }
.cm-item > span:nth-child(2) { flex: 1; }
.cm-arrow { color: #b0b0b4; }
.cm-empty { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Sign in */
.signin-card { max-width: 480px; padding: 34px; }
.si-icon { width: 44px; height: 44px; border-radius: 10px; background: #e3fcf8; display: grid; place-items: center; }
.signin-card h2 { margin: 22px 0 0; padding-right: 30px; font-family: var(--font-display); font-size: 29px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.si-text { margin: 10px 0 0; max-width: 330px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.si-form { margin-top: 26px; }
.si-form .input { height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; }
.si-form .btn-block { margin-top: 14px; height: 46px; }
.si-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.si-social .btn { height: 44px; box-shadow: inset 0 0 0 1px #dcdcda; font-weight: 700; }
.si-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .cm-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .modal { padding: 12px; }
  .cm-head { padding: 24px 20px 18px; }
  .cat-modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .cm-body { padding: 16px 20px 24px; }
  .cm-grid { grid-template-columns: 1fr; }
  .signin-card { padding: 26px 22px; }
  .flow-actions { gap: 12px; }
  .flow-help, .step-pill { display: none; }
  .nav-flow .btn { height: 38px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .nav-flow .pill-dark { display: none; }
}
