/* The first-contact form (taps.js). Built on style.css and levada.css: same tokens, pill buttons, sticky bar. */
.taps main { max-width: 640px; }
.taps .tp-title, .taps .tp-q { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; outline: none; }
.taps .tp-title:focus, .taps .tp-title:focus-visible, .taps .tp-q:focus, .taps .tp-q:focus-visible { outline: none; }
.taps .tp-title { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.2; margin: 8px 0 20px; }
.taps .tp-q { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.3; margin: 22px 0 8px; }
.taps .tp-brief { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.taps .tp-brief p { margin: 0; font-size: 1.05rem; }
.taps .tp-brief strong { display: block; font-family: var(--display); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.taps .tp-start { margin-top: 8px; padding-inline: 36px; min-height: 52px; }

.taps .tp-progress { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.taps .tp-track { flex: 1; height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.taps .tp-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 200ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .taps .tp-fill { transition: none; } }

.taps .tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.taps .tp-chips.stack { flex-direction: column; flex-wrap: nowrap; margin: 12px 0; }
.taps .tp-chip { border-radius: 999px; min-height: 48px; padding: 10px 18px; background: var(--chip); border: 1px solid transparent; color: var(--text); text-align: left; }
.taps .tp-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in oklch, var(--accent), transparent 86%); font-weight: 500; }
.taps .tp-chips.stack .tp-chip { width: 100%; border-radius: 16px; }
.taps .tp-chip.sm { min-height: 40px; padding: 7px 14px; font-size: 0.9rem; }
.taps .tp-task { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.taps .tp-desc { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.taps .tp-name { font-weight: inherit; }
@media (hover: hover) { .taps .tp-chip:hover { border-color: var(--line); } .taps .tp-chip[aria-pressed="true"]:hover { border-color: var(--accent); } }

.taps .tp-fields { display: flex; flex-direction: column; }
.taps .tp-f { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.taps .tp-addrow { display: flex; gap: 8px; }
.taps .tp-addrow input { flex: 1; }
.taps .tp-addrow button { flex: 0 0 auto; padding-inline: 22px; }
.taps .tp-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.taps .tp-grow { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.taps .tp-grow:last-child { border-bottom: 0; }
.taps .tp-grow .tp-name { display: block; font-weight: 600; }
.taps .tp-grow .tp-chips { margin: 8px 0 0; }

.taps .tp-review { display: flex; flex-direction: column; margin-top: 8px; }
.taps .tp-rrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.taps .tp-rh { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.taps .tp-rh .link { font-family: var(--body); font-size: 0.9rem; text-transform: none; letter-spacing: 0; padding: 4px 6px; text-decoration: underline; }
.taps .tp-rv { margin-top: 4px; }
.taps .tp-rv ul { margin: 0; padding-left: 18px; }
.taps .tp-rv li { margin-bottom: 4px; }
.taps .tp-next { margin-top: 24px; padding: 16px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.taps .tp-next h3 { font-family: var(--display); font-weight: 500; font-size: 1rem; margin: 0 0 6px; }
.taps .tp-next p { margin: 0; }

/* the bar lines up with the form's column, and Back and Next share it */
.taps .bar-inner { max-width: 640px; }
.taps .bar-inner button { flex: 1 1 0; }
@media (min-width: 900px) {
  .taps .bar-inner { flex-wrap: wrap; }
  .taps #status { flex: 0 0 100%; width: 100%; order: -1; min-height: 0; }
}

/* language buttons, beside the back link */
.taps .tp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.taps .tp-top .back { margin-bottom: 0; }
.taps .tp-langs { display: flex; gap: 6px; }
.taps .tp-langs button { min-height: 36px; padding: 4px 14px; font-size: 0.9rem; background: transparent; border: 1px solid var(--line); }
.taps .tp-langs button[aria-pressed="true"] { background: color-mix(in oklch, var(--accent), transparent 86%); border-color: var(--accent); font-weight: 600; }
