/* stefanpressconsulting.com - tested.php's ATS infographic (owner 2026-10-27: "a 'killer infographic' for the How it's
   tested page, showcasing the ATS and the emulators, logging, etc. ... polished and cool"). Markup + this file only:
   no script, nothing inline (strict CSP). Every animation stops for prefers-reduced-motion, showing its end state. */

  .ats {
    --ats-good: #5dffb0;
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
    --glass-line: rgba(255, 255, 255, 0.09);
    position: relative;
    margin: 30px 0 8px;
    padding: 34px 30px 30px;
    border-radius: 28px;
    border: 1px solid var(--glass-line);
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(74, 240, 255, 0.10), transparent 55%),
      radial-gradient(100% 90% at 100% 100%, rgba(160, 107, 255, 0.13), transparent 60%),
      rgba(8, 11, 22, 0.78);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  /* ---- the headline ---------------------------------------------------------------------------------------------- */
  .ats-head { text-align: center; margin: 0 auto 30px; max-width: 46ch; }
  .how .ats-kicker {
    margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--cyan);
  }
  .page .how .ats-title {
    margin: 0; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
    background: linear-gradient(92deg, #ffffff 0%, #cfe9ff 45%, var(--cyan) 75%, var(--violet) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .how .ats-sub { margin: 12px 0 0; font-size: 16px; color: var(--muted); letter-spacing: -0.005em; }

  /* ---- the five gates, joined by a line with a light running along it --------------------------------------------- */
  .ats-flow {
    position: relative; list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  }
  .ats-flow::before {                     /* the rail, through the icon centres */
    content: ""; position: absolute; left: 10%; right: 10%; top: 40px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(74, 240, 255, 0.15), rgba(160, 107, 255, 0.35), rgba(93, 255, 176, 0.4));
  }
  .ats-flow::after {                      /* the light */
    content: ""; position: absolute; top: 37px; left: 10%; width: 64px; height: 8px; border-radius: 8px;
    background: radial-gradient(closest-side, #fff, var(--cyan) 45%, transparent);
    filter: blur(1px); opacity: 0;
    animation: ats-run 4.8s cubic-bezier(.55, .05, .35, 1) infinite;
  }
  @keyframes ats-run {
    0%   { left: 10%; opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { left: calc(90% - 64px); opacity: 0; }
  }
  .ats-stage {
    position: relative; padding: 18px 16px 18px; border-radius: 20px; text-align: center;
    background: var(--glass); border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
  }
  .ats-stage:hover { transform: translateY(-4px); border-color: rgba(74, 240, 255, 0.35); }
  .ats-icon {
    position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px;
    border-radius: 15px;
    background: linear-gradient(140deg, rgba(74, 240, 255, 0.95), rgba(160, 107, 255, 0.95));
    box-shadow: 0 10px 28px -8px rgba(74, 240, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  .ats-stage:last-child .ats-icon { background: linear-gradient(140deg, var(--ats-good), var(--cyan)); }
  .ats-icon svg { width: 24px; height: 24px; fill: none; stroke: #061018; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .ats-n {
    display: block; margin-bottom: 4px; font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
    letter-spacing: 0.12em; color: var(--muted);
  }
  .page .how .ats-stage h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
  .how .ats-stage p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

  /* ---- the lab and the log, side by side ---------------------------------------------------------------------------- */
  .ats-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 18px; }
  .ats-lab, .ats-log {
    border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .ats-lab { padding: 18px 20px 16px; }
  .how .ats-label {
    margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  }
  .ats-devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; justify-items: center; gap: 16px 8px; }
  .dev { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .dev b { font-size: 11.5px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; white-space: nowrap; }
  .dev .screen {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 14px 9px 9px;
    background: linear-gradient(180deg, #0f1730, #0a0f20);
  }
  .dev.phone .screen {
    width: 66px; height: 132px; border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.22); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
  }
  .dev.ios .screen::before {              /* the island */
    content: ""; position: absolute; top: 5px; left: 50%; width: 22px; height: 6px; margin-left: -11px; border-radius: 6px;
    background: #000;
  }
  .dev.droid .screen { border-radius: 12px; }
  .dev.droid .screen::before {            /* the punch-hole camera */
    content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
    background: #000;
  }
  .dev.web { gap: 0; }                   /* the title bar sits on its screen */
  .dev.web b { margin-top: 8px; }
  .dev.web .chrome, .ats-log .chrome {
    display: flex; align-items: center; gap: 4px; padding: 6px 8px;
    background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid var(--glass-line);
  }
  .dev.web .chrome { width: 100px; border-radius: 10px 10px 0 0; border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; }
  .dev.web .chrome i, .ats-log .chrome i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
  .dev.web .chrome i:first-child, .ats-log .chrome i:first-child { background: #ff5f57; }
  .dev.web .chrome i:nth-child(2), .ats-log .chrome i:nth-child(2) { background: #febc2e; }
  .dev.web .chrome i:nth-child(3), .ats-log .chrome i:nth-child(3) { background: #28c840; }
  .dev.web .screen {
    width: 100px; height: 70px; border-radius: 0 0 10px 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-top: 0;
  }
  .dev .bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
  .dev .bar.s { width: 60%; }
  .dev .btn {
    display: block; height: 14px; margin-top: auto; border-radius: 7px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
  }
  .dev .tap {                             /* a scripted tap on the button ... */
    position: absolute; left: 50%; bottom: 9px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
    border: 2px solid #fff; opacity: 0;
    animation: ats-tap 3.6s ease-out infinite;
  }
  .dev .ok {                              /* ... and the check that it worked */
    position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -18px 0 0 -13px; border-radius: 50%;
    background: var(--ats-good); box-shadow: 0 0 18px rgba(93, 255, 176, 0.7); opacity: 0; transform: scale(.4);
    animation: ats-ok 3.6s cubic-bezier(.2, 1.4, .4, 1) infinite;
  }
  .dev .ok::after {
    content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px;
    border: solid #052014; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
  }
  .dev:nth-child(2) .tap, .dev:nth-child(2) .ok { animation-delay: .45s; }
  .dev:nth-child(3) .tap, .dev:nth-child(3) .ok { animation-delay: .9s; }
  .dev:nth-child(4) .tap, .dev:nth-child(4) .ok { animation-delay: 1.35s; }
  @keyframes ats-tap {
    0%, 14% { opacity: 0; transform: scale(.3); }
    18%     { opacity: .95; transform: scale(.5); }
    34%     { opacity: 0; transform: scale(1.6); }
    100%    { opacity: 0; }
  }
  @keyframes ats-ok {
    0%, 30% { opacity: 0; transform: scale(.4); }
    40%     { opacity: 1; transform: scale(1); }
    80%     { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; transform: scale(.9); }
  }
  .how .ats-note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

  /* the log: its lines type in one after another and end on ALL GOOD */
  .ats-log { overflow: hidden; display: flex; flex-direction: column; }
  .ats-log .chrome { gap: 5px; padding: 9px 12px; }
  .ats-log .chrome span {
    margin-left: 8px; font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--muted);
  }
  .ats-log ol {
    list-style: none; margin: 0; padding: 12px 14px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
    font: 12px/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  }
  .ats-log li {
    display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--text);
    opacity: 0; animation: ats-line .35s ease-out both;
  }
  .ats-log li::before { content: "\203A"; color: var(--cyan); }
  .ats-log li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ats-log li span::after { content: " ........................................"; color: rgba(255, 255, 255, 0.18); }
  .ats-log li em { flex: none; font-style: normal; color: var(--ats-good); }
  .ats-log li.final em {
    padding: 2px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; color: #052014;
    background: var(--ats-good); box-shadow: 0 0 0 0 rgba(93, 255, 176, 0.6);
    animation: ats-glow 2.4s ease-out 4.6s infinite;
  }
  .ats-log li:nth-child(1) { animation-delay: .3s; }
  .ats-log li:nth-child(2) { animation-delay: .8s; }
  .ats-log li:nth-child(3) { animation-delay: 1.3s; }
  .ats-log li:nth-child(4) { animation-delay: 1.8s; }
  .ats-log li:nth-child(5) { animation-delay: 2.3s; }
  .ats-log li:nth-child(6) { animation-delay: 2.9s; }
  .ats-log li:nth-child(7) { animation-delay: 3.5s; }
  .ats-log li:nth-child(8) { animation-delay: 4.2s; }
  @keyframes ats-line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes ats-glow {
    0%   { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(93, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0); }
  }

  /* ---- the three promises ------------------------------------------------------------------------------------------ */
  .ats-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ats-facts li {
    padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line);
  }
  .ats-facts b {
    display: block; margin-bottom: 4px; font-size: 17px; font-weight: 750; letter-spacing: -0.015em;
    background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .ats-facts span { font-size: 13px; line-height: 1.5; color: var(--muted); }

  /* ---- narrower screens: the gates stack, the rail runs down the left ------------------------------------------- */
  @media (max-width: 900px) {
    .ats-flow { grid-template-columns: 1fr; gap: 10px; }
    .ats-flow::before { left: 38px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto;
      background: linear-gradient(180deg, rgba(74, 240, 255, 0.2), rgba(160, 107, 255, 0.4), rgba(93, 255, 176, 0.45)); }
    .ats-flow::after { display: none; }
    .ats-stage {
      display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; text-align: left;
      padding: 14px 16px;
    }
    .ats-icon { grid-row: 1 / span 3; margin: 0; }
    .ats-n { margin: 0; }
    .ats-row { grid-template-columns: 1fr; }
    .ats-facts { grid-template-columns: 1fr; gap: 10px; }
  }
  @media (max-width: 560px) {
    .ats { padding: 26px 16px 18px; border-radius: 22px; }
    .ats-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (prefers-reduced-motion: reduce) {
    .ats-flow::after { animation: none; opacity: 0; }
    .ats-stage { transition: none; }
    .dev .tap { animation: none; opacity: 0; }
    .dev .ok { animation: none; opacity: 1; transform: none; }
    .ats-log li { animation: none; opacity: 1; }
    .ats-log li.final em { animation: none; }
  }
