/* Open testing (pitch 203): the tester page and the signed-in tester pages, from
   the Open testing canvas (tester.css). Each site's tokens come from [data-site]
   in application.css. */

/* The tester page: the invite block, the sign-in buttons, the three points */
.tester-invited { display: grid; gap: .25rem; margin: 0; padding: 1rem 1.25rem; border-radius: var(--r-card); background: #fff; color: var(--ink); }
.tester-invited strong { font-size: 1.1rem; }
.tester-invited span { color: var(--muted); }
.tester-sign-in { display: contents; }
/* The eyebrow as on each site's board: Bondable's gold stays, the others white */
.tester-hero .split > div.stack .eyebrow { color: #fff; }
[data-site=hangout] .tester-hero .eyebrow { text-transform: uppercase; letter-spacing: .06em; }
[data-site=flirtify] .tester-hero .eyebrow { font-size: .85rem; }
[data-site=irl] .tester-hero .split > div.stack .eyebrow { color: var(--on-feature-muted); }
[data-site=bondable] .tester-hero .split > div.stack .eyebrow { color: var(--accent); }
.tester-hero .button { gap: .6rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.tester-hero .tester-google { background: #fff; color: var(--ink); }
.tester-hero .tester-apple { background: #000; color: #fff; }
[data-site=irl] .tester-hero .tester-apple { background: transparent; box-shadow: inset 0 0 0 1px #8a877f; }
.tester-points { list-style: none; padding: 0; margin: 0; }
.tester-points .panel { display: flex; gap: 1rem; align-items: flex-start; }
.tester-num { flex: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 700; }
[data-site=bondable] .tester-num { border-radius: 8px; }
[data-site=irl] .tester-points .panel { background: #1f1f1e; box-shadow: inset 0 0 0 1px #34332f; color: #fff; }
[data-site=irl] .tester-points .quiet { color: var(--on-feature-muted); }
[data-site=irl] .tester-num { background: #fff; color: #121212; }
.tester-apps { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.tester-app { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; background: #2b2a27; font-size: .8rem; font-weight: 600; color: #fff; }
.tester-app::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--app-color); }
[data-app=bondable] { --app-color: #1D3557; } [data-app=hangout] { --app-color: #2A9D8F; } [data-app=flirtify] { --app-color: #E63946; }
.tester-app[data-app=bondable] { --app-color: #7d9cc7; }

/* The signed-in pages: the site's colour on top, a narrow column */
.tester-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.tester-body :is(h1, h2, p, ul, ol, fieldset, legend) { margin: 0; }
.tester-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: .85rem max(var(--gutter), (100% - 72rem) / 2); background: var(--feature); color: #fff; }
.tester-header img { height: calc(var(--logo-h) * .9); width: auto; display: block; }
[data-site=irl] .tester-header img { filter: brightness(0) invert(1); }
.tester-me { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .9rem; }
.tester-inline { display: inline; }
.tester-inline button { min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
.tester-col { flex: 1 0 auto; box-sizing: border-box; width: min(100% - 2 * var(--gutter), 40rem); margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 3rem; display: grid; gap: 1.75rem; align-content: start; }
.tester-col--wide { width: min(100% - 2 * var(--gutter), 60rem); }
.tester-title { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.08; letter-spacing: var(--tracking); font-weight: var(--display-weight); }
.tester-h2 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.tester-card { display: grid; gap: 1rem; padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: var(--r-card); background: var(--raised); box-shadow: var(--edge); }
.tester-card--tight { gap: .6rem; }
.tester-soft { display: grid; gap: .35rem; padding: 1rem 1.15rem; border-radius: var(--r-card); background: var(--accent-soft); color: var(--on-accent-soft); }
.tester-soft strong { color: var(--ink); }
.tester-foot { padding: 1.25rem max(var(--gutter), (100% - 72rem) / 2); border-top: 1px solid var(--line); background: var(--raised); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.tester-foot a { color: var(--muted); }

/* The form */
.tester-field { display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0; }
.tester-field > label, .tester-field > legend { font-weight: 600; padding: 0; }
.tester-hint { font-size: .88rem; color: var(--muted); }
/* Errors are red on every site, so they never read as a note */
.tester-alert { display: grid; gap: .3rem; margin: 0; padding: .9rem 1rem .9rem 2.1rem; border-radius: var(--r-control); background: #fdecea; box-shadow: inset 0 0 0 1.5px #b42318; color: #b42318; font-weight: 600; }
.tester-error { display: block; font-size: .88rem; font-weight: 600; color: #b42318; }
.tester-input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 1rem; border-radius: var(--r-control); border: 1.5px solid var(--line); background: var(--raised); font: inherit; color: var(--ink); }
.tester-input[aria-invalid] { border-color: #b42318; }
.tester-input--select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.tester-choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.tester-choices--wide { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.tester-choice { display: flex; align-items: center; gap: .65rem; min-height: 52px; box-sizing: border-box; padding: .6rem 1rem; border-radius: var(--r-control); border: 1.5px solid var(--line); background: var(--raised); cursor: pointer; }
.tester-choice--card { padding: .85rem 1rem; gap: .85rem; }
.tester-choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--action); flex: none; }
.tester-choice--card input { position: absolute; opacity: 0; }
.tester-choice:has(input:checked) { border-color: var(--action); background: var(--action-soft, var(--sunken)); }
.tester-choice:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.tester-sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.tester-dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: var(--app-color); }
.tester-ticks { gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tester-tick { display: flex; align-items: flex-start; gap: .65rem; }
.tester-tick input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--action); flex: none; }
.tester-tick .tester-hint { display: block; }
.tester-wide { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.tester-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Setting up, status and people */
.tester-steps { list-style: none; padding: 0; display: grid; counter-reset: step; }
.tester-steps > li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .2rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.tester-steps > li:first-child { border-top: 0; padding-top: 0; }
.tester-steps > li::before { content: counter(step); grid-row: span 3; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--action); color: #fff; font-weight: 700; }
.tester-steps > li > * { grid-column: 2; }
.tester-steps strong { font-size: 1.05rem; }
.tester-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.tester-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: var(--r-control); background: var(--action-soft, var(--sunken)); color: var(--link); font-weight: 600; text-decoration: none; }
.tester-chip { display: inline-flex; align-items: center; justify-self: start; padding: .2rem .65rem; border-radius: 999px; background: var(--sunken); color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tester-chip--done { background: var(--success-soft); color: var(--success); }
.tester-rows { list-style: none; padding: 0; display: grid; }
.tester-rows > li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .4rem 0; border-top: 1px solid var(--line); }
.tester-rows > li:first-child { border-top: 0; }
.tester-app-name { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.tester-face { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sunken); color: var(--ink); font-weight: 700; font-size: .9rem; flex: none; }
.tester-linkbox { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-radius: var(--r-control); background: var(--sunken); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; overflow-x: auto; white-space: nowrap; }
.tester-card .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.tester-card .tester-quiet { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.tester-meter { height: .5rem; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.tester-meter > span { display: block; height: 100%; background: var(--action); border-radius: 999px; }
/* An app's status beside its name: "Bondable · Coming soon" */
.tester-status { color: var(--muted); font-weight: 400; }
