/* ==================================================================
   /tools/screen-recorder, on the foundation look. A new free tool,
   built 2026-11-21 behind switch tools-screen-recorder.

   Layout unique to this page only. The first screen, the questions and
   the links are the shared tool kit (foundation-tools.css); buttons,
   the switch, badges, errors and cards are the foundation's and are NOT
   redrawn here. prior-art (2026-11-21) found the switch, button, badge
   and stat parts in the system; the recording timer and the countdown
   are the two parts of its own.
   ================================================================== */

/* ------------------------------------------------------------------
   1. THE FIRST SCREEN
   ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .sr-top .fnd-tool-top__in { display: block; }
  .fnd .sr .fnd-tool-lead { max-width: 960px; }
  .fnd .sr .fnd-tool-lead .fnd-display { max-width: none; }
}
.fnd .sr .fnd-tool-lead,
.fnd .sr .sr-app,
.fnd .sr .sr-how { max-width: 760px; margin-left: auto; margin-right: auto; }

.fnd .sr .fnd-tool-lead { text-align: center; }
.fnd .sr .fnd-tool-lead .fnd-display,
.fnd .sr .fnd-tool-lead__sub { margin-left: auto; margin-right: auto; text-align: center; }
.fnd .sr .fnd-tool-lead__sub { text-wrap: balance; }
.fnd .sr h1.fnd-display,
.fnd .sr-qa__list summary,
.fnd .sr .fnd-h2 { text-wrap: balance; }
.fnd .sr p,
.fnd .sr .fnd-help,
.fnd .sr .fnd-tool-more__sub { text-wrap: pretty; }
@media (max-width: 413px) {
  .fnd .sr .fnd-tool-lead .fnd-display { font-size: 2.15rem; }
}
@media (max-width: 559px) {
  .fnd .sr .fnd-tool-lead { margin-bottom: var(--fnd-s4); }
}

/* Three short chips under the sub (the foundation's .fnd-chip). */
.sr-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--fnd-s2);
  list-style: none; margin: var(--fnd-s4) 0 0; padding: 0;
}
.sr-tags .fnd-chip { display: inline-flex; align-items: center; gap: 6px; }
.sr-tags .fa-check { font-size: 12px; }

/* ------------------------------------------------------------------
   2. THE APP: options, recording, finished video
   ------------------------------------------------------------------ */
.sr-app { position: relative; margin-top: var(--fnd-s5); }
.sr-app [hidden] { display: none !important; }

.sr-card__head { margin-bottom: var(--fnd-s4); }
.sr-card__head .fnd-tool-h3,
.sr-card__head .fnd-tool-more__sub { margin-bottom: 0; }
.sr-card__head .fnd-tool-more__sub { margin-top: var(--fnd-s1); }
.sr-done-h:focus,
#sr-done-h:focus { outline: none; }

/* The four switches. */
.sr-sw { list-style: none; margin: 0; padding: 0; }
.sr-sw li { padding: var(--fnd-s3) 0; border-top: 1px solid var(--fnd-edge); }
.sr-sw li:first-child { border-top: 0; padding-top: 0; }
.sr-sw .fnd-switch { display: flex; align-items: flex-start; gap: var(--fnd-s3); width: 100%; cursor: pointer; }
.sr-sw__t { display: block; flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--fnd-text); font-size: 15px; line-height: 1.4; }
.sr-sw__d { display: block; margin-top: 2px; font-weight: 400; font-size: var(--fnd-t-meta); line-height: 1.5; color: var(--fnd-text-soft); text-wrap: pretty; }
.sr-sw input:disabled ~ .fnd-switch-track { opacity: .5; }

.sr-err { margin: var(--fnd-s3) 0 0; text-wrap: pretty; }

/* The big button and the privacy line under it. */
.sr-startrow {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--fnd-s3);
  margin-top: var(--fnd-s5);
}
.fnd .sr .sr-start { width: 100%; max-width: 420px; justify-content: center; gap: var(--fnd-s2); }
.fnd .sr .sr-start:disabled { opacity: .65; cursor: progress; }
.sr-rec { color: var(--color-brand-red); font-size: 12px; }
.sr-private { margin: 0; text-align: center; }
.sr-private .fa-lock { margin-right: 4px; }

/* While recording: the clock is the one big thing. */
.sr-live .fnd-card-body { text-align: center; }
.sr-live__state { margin: 0 0 var(--fnd-s2); }
.sr-timer {
  margin: 0 0 var(--fnd-s4);
  font-family: var(--fnd-display-font); font-weight: 700;
  font-size: 4rem; line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--fnd-text);
}
.sr-live__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--fnd-s3); }
.sr-live__btns .fnd-btn { min-width: 140px; justify-content: center; }
.sr-live__tip { margin: var(--fnd-s4) 0 0; }
.sr-cam-note { margin: var(--fnd-s3) auto 0; max-width: 520px; }

/* Camera bubble, only where the browser cannot float it. */
.sr-cam {
  width: 140px; height: 140px; margin: var(--fnd-s4) auto 0;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--fnd-card);
  box-shadow: 0 8px 24px -8px rgba(23, 20, 31, .4);
  background: var(--fnd-ink);
}
.sr-cam video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* The 3 2 1 over everything. */
.sr-countdown {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 20, 31, .72);
}
.sr-countdown span {
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--fnd-card); color: var(--fnd-text);
  font-family: var(--fnd-display-font); font-weight: 800; font-size: 5rem;
}

/* The finished video. */
.sr-video {
  display: block; width: 100%; max-height: 50vh; object-fit: contain;
  border-radius: var(--fnd-r-md, 12px);
  background: var(--fnd-ink);
}
.sr-done__btns { display: flex; flex-wrap: wrap; gap: var(--fnd-s3); margin-top: var(--fnd-s4); }
.sr-done__btns .fnd-btn { justify-content: center; }
.sr-done__tip { margin: var(--fnd-s4) 0 0; }

/* Phones and tablets. */
.sr-phone__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fnd-s5); margin-top: var(--fnd-s4); }
.sr-phone__h { display: flex; align-items: center; gap: var(--fnd-s2); margin: 0 0 var(--fnd-s2); font-size: 15px; font-weight: 700; }
.sr-phone__steps { margin: 0; padding-left: 1.25em; list-style: decimal; font-size: 15px; line-height: 1.6; color: var(--fnd-text-soft); }
.sr-phone__steps li { margin-bottom: var(--fnd-s1); }

/* ------------------------------------------------------------------
   3. HOW IT WORKS
   ------------------------------------------------------------------ */
.sr-how { margin-top: var(--fnd-s6, 48px); }
.sr-how__h { text-align: center; margin-bottom: var(--fnd-s4); }
.sr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fnd-s3); list-style: none; margin: 0; padding: 0; }
.sr-steps li {
  display: flex; flex-direction: column; align-items: center; gap: var(--fnd-s2);
  text-align: center; padding: var(--fnd-s2) var(--fnd-s3);
  /* No box: these are steps to read, not buttons to press. */
  background: none; border: 0;
}
.sr-steps__n {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fnd-accent-soft); color: var(--fnd-accent-deep);
  font-weight: 700; font-size: 14px;
}
.sr-steps__t { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--fnd-text); text-wrap: balance; }

/* ------------------------------------------------------------------
   4. THE CLOSED TOOLS NOTE
   ------------------------------------------------------------------ */
.sr-old__in { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------
   5. PHONE WIDTH
   ------------------------------------------------------------------ */
@media (max-width: 559px) {
  .sr-timer { font-size: 3rem; }
  .sr-steps { grid-template-columns: 1fr; }
  .sr-steps { gap: var(--fnd-s1); }
  .sr-steps li { flex-direction: row; text-align: left; padding: var(--fnd-s1) 0; }
  .sr-phone__cols { grid-template-columns: 1fr; gap: var(--fnd-s4); }
  .sr-done__btns .fnd-btn,
  .sr-live__btns .fnd-btn { width: 100%; }
}

/* Hover and focus on everything pressed. */
.sr-sw .fnd-switch:hover .sr-sw__t { color: var(--fnd-accent-deep); }
.sr-sw .fnd-switch input:focus-visible ~ .fnd-switch-track {
  outline: 2px solid var(--fnd-accent); outline-offset: 2px;
}
.fnd .sr .fnd-btn:focus-visible { outline: 2px solid var(--fnd-accent); outline-offset: 2px; }
.fnd .sr .fnd-btn:not(:disabled):hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .fnd .sr .fnd-btn:not(:disabled):hover { transform: none; }
}

/* ------------------------------------------------------------------
   6. REVIEW FIXES
   ------------------------------------------------------------------ */
/* No dot inside the Recording pill (founder: no dot in a pill, anywhere). */
.fnd .sr .sr-live .fnd-badge::before { content: none; }
.sr-done { scroll-margin-top: 72px; }
.fnd .sr .sr-old__in p,
.fnd .sr .sr-done__tip { text-wrap: balance; }

/* The camera preview under its switch. */
.sr-campre {
  width: 96px; height: 96px; margin: var(--fnd-s3) 0 0 52px;
  border-radius: 50%; overflow: hidden; background: var(--fnd-ink);
  border: 2px solid var(--fnd-edge);
}
.sr-campre video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.sr-sys-note { margin: var(--fnd-s3) auto 0; max-width: 520px; text-wrap: balance; }
