/* Early testers (testers/): the download, five install steps each with a small picture of
   what you'll see, good to know, and feedback. testers.js fills in the extensions page's
   address. */

.ts { width: min(980px, calc(100% - 32px)); margin: 0 auto 120px; }

.ts-head { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; }
.ts-title .l1 { font-size: clamp(46px, 7vw, 92px); }
.ts-title .l2 { font-size: clamp(32px, 5vw, 64px); }
.ts-lede { max-width: 620px; margin: 22px auto 0; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: #3E3858; }
.ts-lede-ask { display: block; } /* the ask on its own line, never split mid-sentence */

/* the download (or, where Vclip can't be installed, the smart button) */
.ts-get { margin-top: 32px; }
.ts-download { padding: 15px 26px; font-size: 17px; box-shadow: 0 14px 30px -14px rgba(91, 43, 224, 0.7); }
.ts-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-version { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.ts-elsewhere { display: none; }
.ts-elsewhere p { margin: 0 0 14px; color: #3E3858; }
html[data-browser="phone"] .ts-download, html[data-browser="phone"] .ts-version,
html[data-browser="safari"] .ts-download, html[data-browser="safari"] .ts-version,
html[data-browser="firefox"] .ts-download, html[data-browser="firefox"] .ts-version { display: none; }
html[data-browser="phone"] .ts-elsewhere, html[data-browser="safari"] .ts-elsewhere, html[data-browser="firefox"] .ts-elsewhere { display: block; }

/* join, then download */
.ts-join { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 20px 50px -34px rgba(91, 43, 224, 0.5); text-align: left; }
.ts-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ts-join label { display: grid; gap: 6px; }
.ts-join label span { font-size: 14px; font-weight: 600; color: var(--ink); }
.ts-join label small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ts-join input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 16px/1.2 var(--body); transition: border-color 0.15s, box-shadow 0.15s; } /* 16px: phones don't zoom in */
.ts-join input::placeholder { color: #A39DBA; }
.ts-join input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91, 43, 224, 0.12); background: #fff; }
.ts-submit { width: 100%; padding: 15px 22px; font-size: 17px; box-shadow: 0 14px 30px -14px rgba(91, 43, 224, 0.7); }
.ts-submit:disabled { opacity: 0.7; cursor: progress; }
.ts-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEF; color: #9F1239; font-size: 14px; }
.ts-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.ts-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* for bots only */
.ts-joined { margin-top: 4px; }
.ts-welcome { margin: 0 0 18px; font: 700 clamp(26px, 3vw, 32px)/1.2 var(--display); color: var(--violet); outline: none; }

/* the home page's animation, under the download */
.ts-demo { margin-top: 72px; }

/* the five steps */
.ts-steps { margin-top: 96px; }
.ts-steps h2, .ts-know h2, .ts-feedback h2 { margin: 0; font: 700 clamp(28px, 3vw, 36px)/1.15 var(--display); }
.ts-steps ol { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.ts-steps li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); counter-increment: step; }
.ts-steps li:last-child { border-bottom: 1px solid var(--line); }
.ts-steps h3 { position: relative; margin: 0; padding-left: 40px; font: 600 19px/1.35 var(--body); }
.ts-steps h3::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 14px; font-weight: 600; }
.ts-steps p { margin: 8px 0 0 40px; color: #3E3858; }
.ts-steps .ts-copy, .ts-steps .ts-note { margin-left: 40px; }
.ts-steps .ts-ready { margin: 26px 0 0; font-size: 17px; color: #3E3858; } /* not indented like the steps' text */
.ts a:not(.btn) { color: var(--violet); text-underline-offset: 3px; }
.ts code { padding: 2px 7px; border-radius: 6px; background: var(--lilac); color: var(--violet-hover); font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ts-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 380px; margin-top: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ts-copy code { padding: 0; background: none; }
.ts-copy .btn { width: auto; flex: none; }
.ts-note { margin-top: 10px !important; font-size: 15px; }

/* the little pictures: a calm, simplified version of what you'll see */
.ts-pic { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 120px; padding: 18px; border: 1px solid #DDD3FB; border-radius: 18px; background: var(--lilac); }
.ts-arrow { color: var(--violet); font-size: 20px; font-weight: 600; }
.ts-file { display: grid; justify-items: center; gap: 6px; font-size: 13px; }
.ts-file b { font-weight: 600; }
.ts-zip { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--violet); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 4px 10px -6px rgba(27, 21, 48, 0.4); }
.ts-folder { position: relative; width: 56px; height: 42px; border-radius: 4px 6px 6px 6px; background: #8B6CFF; box-shadow: 0 4px 10px -6px rgba(27, 21, 48, 0.4); }
.ts-folder::before { content: ""; position: absolute; left: 0; top: -7px; width: 24px; height: 9px; border-radius: 4px 4px 0 0; background: #8B6CFF; }
.ts-bar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 250px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.ts-bar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.ts-dev { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ts-switch { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--violet); }
.ts-switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ts-button { padding: 9px 14px; border-radius: 8px; background: #fff; border: 1px solid #CDBBFF; color: var(--violet); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ts-puzzle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.ts-puzzle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.ts-pin { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ts-pin img { width: 20px; height: 20px; }
.ts-pin svg { width: 18px; height: 18px; fill: var(--violet); stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* good to know */
.ts-know { margin-top: 88px; }
.ts-know dl { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ts-know dl > div { padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ts-know dt { font-size: 16px; font-weight: 600; }
.ts-know dd { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #3E3858; }

/* feedback */
.ts-feedback { max-width: 720px; margin: 88px auto 0; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--lilac); border: 1px solid #DDD3FB; text-align: center; }
.ts-feedback p { margin: 14px 0 0; color: #3E3858; }
.ts-feedback ul { display: inline-grid; gap: 8px; margin: 16px 0 24px; padding: 0 0 0 20px; text-align: left; color: #3E3858; }
.ts-mail { font-size: 15px; }

@media (max-width: 1023px) {
  .ts { margin-bottom: 96px; }
  .ts-know dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ts-fields { grid-template-columns: minmax(0, 1fr); }
  .ts-join { padding: 18px; }
  .ts-steps li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ts-pic { min-height: 96px; }
}
@media (max-width: 400px) {
  .ts-steps p, .ts-steps .ts-copy, .ts-steps .ts-note { margin-left: 0; }
  .ts-pic { gap: 10px; padding: 14px; }
}
