/* ===========================================================================
   topcontactcenters.com
   ---------------------------------------------------------------------------
   CONCEPT: THE WALLBOARD.
   Every contact centre manager in America spends the day looking at a wallboard
   -- the screen on the floor with queue depth, agents available, service level.
   So the top of this page is a wallboard, and the rest of the market is a
   ledger underneath it. The hard cut between the dark panel and the white list
   is the product: you are not buying a link, you are buying your way onto the
   wall.

   PALETTE  slate #0B1016 / panel #141B24 / signal amber #FFB020 / paper #FFFFFF
   TYPE     Archivo (width axis, for signage-wide display) + IBM Plex Mono (all
            numerals -- this is a stats board, and figures have to align)
   =========================================================================== */

:root {
  --slate:      #0B1016;
  --slate-2:    #141B24;
  --slate-3:    #1E2732;
  --amber:      #FFB020;
  --amber-dim:  #8A6314;
  --paper:      #FFFFFF;
  --ink:        #161A1F;
  --ink-soft:   #5A626C;
  --ink-faint:  #949BA4;
  --rule:       #E4E2DD;
  --on-slate:   #F5F3EF;
  --on-slate-soft: #8C97A4;

  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.75rem); }

/* ---- top bar ------------------------------------------------------------ */
.site { background: var(--slate); color: var(--on-slate); padding-block: .9rem; }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 700;
  font-size: 1.05rem; letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; color: var(--on-slate);
}
.brand span { color: var(--amber); }
/* A real button, not a text link. It is the only way onto the board for anyone
   who arrives from search, so it should look clickable at a glance. Outlined
   rather than solid amber: the solid amber is reserved for the bid CTAs, and
   two competing amber fills in one viewport dilutes the one that earns money. */
.site nav a {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber); text-decoration: none;
  padding: .5rem .9rem; border: 1px solid var(--amber-dim); border-radius: 2px;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.site nav a:hover { background: var(--amber); border-color: var(--amber); color: #10131A; }

/* ===========================================================================
   THE WALLBOARD — the top three, and the whole reason to pay
   =========================================================================== */
.wallboard { background: var(--slate); color: var(--on-slate); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.wb-head { display: flex; align-items: baseline; justify-content: space-between;
           flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.wb-head h1 {
  margin: 0; font-variation-settings: 'wdth' 118; font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.02;
  letter-spacing: -.015em; text-transform: uppercase;
}
.wb-head h1 em { font-style: normal; color: var(--amber); }

/* Real counts from the database. No invented "live visitors" figure. */
.ticker { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: .72rem;
          letter-spacing: .05em; text-transform: uppercase; color: var(--on-slate-soft); }
.ticker b { color: var(--on-slate); font-weight: 500; font-variant-numeric: tabular-nums; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }

.seat {
  position: relative; display: flex; flex-direction: column;
  background: var(--slate-2); border: 1px solid var(--slate-3); border-radius: 3px;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  min-height: clamp(15rem, 26vw, 19rem);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.seat:hover { border-color: var(--amber-dim); transform: translateY(-2px); }

/* #1 gets the amber edge. The other two are clearly on the wall but clearly
   not first, which is what makes #1 worth outbidding for. */
.seat.first { background: linear-gradient(168deg, #1A222D 0%, var(--slate-2) 60%);
              border-color: var(--amber-dim); }
.seat.first::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--amber); border-radius: 3px 3px 0 0;
}

/* The numeral is the signature. Enormous, amber, mono, wallboard-sized --
   against a small grey dash on every unranked row further down the page. */
.seat .num {
  font-family: var(--mono); font-weight: 600; font-size: clamp(3.5rem, 7.5vw, 5.75rem);
  line-height: .85; letter-spacing: -.04em; color: var(--amber);
  font-variant-numeric: tabular-nums; margin-bottom: .5rem;
}
.seat.first .num { color: var(--amber); }
.seat:not(.first) .num { color: #4A5563; }

.seat h2 { margin: 0 0 .4rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.15;
           font-variation-settings: 'wdth' 108; font-weight: 600; letter-spacing: -.01em; }
.seat h2 a { text-decoration: none; }
.seat h2 a:hover { color: var(--amber); }
.seat .blurb { margin: 0 0 .9rem; font-size: .84rem; line-height: 1.45;
               color: var(--on-slate-soft); display: -webkit-box; -webkit-line-clamp: 2;
               -webkit-box-orient: vertical; overflow: hidden; }

.seat .stats { margin-top: auto; display: flex; align-items: flex-end;
               justify-content: space-between; gap: .75rem; padding-top: .9rem;
               border-top: 1px solid var(--slate-3); }
.seat .paid { font-family: var(--mono); font-size: 1.35rem; font-weight: 600;
              letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--on-slate); }
.seat .paid small { display: block; font-size: .62rem; letter-spacing: .08em;
                    text-transform: uppercase; color: var(--on-slate-soft); font-weight: 400;
                    margin-bottom: .1rem; }
.seat .clicks { font-family: var(--mono); font-size: .78rem; color: var(--on-slate-soft);
                font-variant-numeric: tabular-nums; text-align: right; }

.seat .acts { display: flex; gap: .5rem; margin-top: .9rem; }

/* An EMPTY seat is the best sales surface on the page: a visibly open slot on
   the wall with a price on it. */
.seat.open { background: transparent; border: 1px dashed #2C3947; justify-content: center;
             align-items: center; text-align: center; }
.seat.open .num { color: #2C3947; }
.seat.open p { margin: 0 0 1rem; font-family: var(--mono); font-size: .74rem;
               letter-spacing: .06em; text-transform: uppercase; color: var(--on-slate-soft); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: .6rem 1rem; border-radius: 2px; border: 1px solid transparent;
  background: var(--amber); color: #10131A;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { background: #FFC24D; }
.btn.ghost { background: transparent; color: var(--on-slate-soft); border-color: #2C3947; }
.btn.ghost:hover { color: var(--on-slate); border-color: #4A5563; }

/* ===========================================================================
   THE LEDGER — everyone else. Deliberately plain: this is what not paying
   looks like.
   =========================================================================== */
.market { padding-block: clamp(2rem, 4vw, 3rem) 4rem; }

.mk-head { display: flex; align-items: baseline; justify-content: space-between;
           flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 1.25rem; }
.mk-head h2 { margin: 0; font-family: var(--mono); font-size: .78rem; font-weight: 500;
              letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mk-head .count { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint);
                  font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.chip { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
        text-decoration: none; padding: .38rem .7rem; border: 1px solid var(--rule);
        border-radius: 2px; color: var(--ink-soft); white-space: nowrap;
        transition: border-color .16s var(--ease), color .16s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--slate); border-color: var(--slate); color: var(--on-slate); }

.ledger { border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 2.75rem 1fr auto auto; gap: 1rem;
        align-items: center; padding-block: .85rem; border-bottom: 1px solid var(--rule); }
.line:hover { background: #FAFAF8; }

.line .rk { font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums;
            color: var(--ink); }
/* Unranked NEVER renders a number: a seeded company sitting at #1 for free
   would have no reason to ever pay. */
.line .rk .dash { color: #C6C3BD; }

.line .who h3 { margin: 0 0 .1rem; font-size: .95rem; line-height: 1.25; font-weight: 600;
                font-variation-settings: 'wdth' 104; }
.line .who h3 a { text-decoration: none; }
.line .who h3 a:hover { color: var(--amber-dim); }
.line .who p { margin: 0; font-size: .8rem; color: var(--ink-faint); line-height: 1.35;
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58ch; }

.line .tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.line .tags a { font-family: var(--mono); font-size: .64rem; letter-spacing: .04em;
                text-transform: uppercase; text-decoration: none; color: var(--ink-faint);
                border: 1px solid var(--rule); border-radius: 2px; padding: .15rem .4rem; }
.line .tags a:hover { color: var(--ink); border-color: var(--ink); }

.line .go { display: flex; align-items: center; gap: .45rem; }
.line .amt { font-family: var(--mono); font-size: .85rem; font-variant-numeric: tabular-nums;
             color: var(--ink-soft); }
.btn.sm { padding: .42rem .7rem; font-size: .66rem; }
.btn.line-claim { background: transparent; color: var(--ink-soft); border-color: var(--rule); }
.btn.line-claim:hover { background: var(--slate); color: var(--amber); border-color: var(--slate); }

.empty { padding: 3.5rem 0; color: var(--ink-faint); font-family: var(--mono);
         font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
         border-top: 1px solid var(--ink); }

/* ===========================================================================
   DETAIL / FORM / FOOTER
   =========================================================================== */
.detail { padding-block: clamp(2rem, 4vw, 3.25rem) 4.5rem; max-width: 780px; }
.detail h1 { margin: 0 0 .5rem; font-variation-settings: 'wdth' 112; font-weight: 700;
             font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.03;
             letter-spacing: -.02em; text-transform: uppercase; }
.detail .desc { margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 62ch; }
.back { margin: 0 0 1.5rem; }
.back a { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
          text-transform: uppercase; color: var(--ink-faint); text-decoration: none; }
.back a:hover { color: var(--ink); }

.facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2rem 0;
         padding-block: 1.35rem; border-block: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .09em;
            text-transform: uppercase; color: var(--ink-faint); margin-bottom: .25rem; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
            line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts .dash { color: #C6C3BD; }
.cta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.cta .btn.ghost { color: var(--ink-soft); border-color: var(--rule); }
.cta .btn.ghost:hover { color: var(--ink); border-color: var(--ink); }

.form { display: grid; gap: 1.15rem; max-width: 440px; margin-top: 2rem; }
.form label { display: grid; gap: .35rem; font-family: var(--mono); font-size: .68rem;
              letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form select {
  font-family: var(--display); font-size: .95rem; color: var(--ink); text-transform: none;
  letter-spacing: 0; padding: .65rem .8rem; border: 1px solid var(--rule);
  border-radius: 2px; background: var(--paper);
}
.form input:focus, .form select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form button { justify-self: start; }
.notice { padding: .8rem 1rem; border-left: 3px solid var(--amber); background: #FFF9EC;
          font-size: .9rem; }

.site-foot { background: var(--slate); color: var(--on-slate-soft); padding-block: 2.25rem 3rem; }
.site-foot p { margin: 0 0 .45rem; font-size: .85rem; }
.site-foot a { color: var(--on-slate); }
.byline { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em;
          text-transform: uppercase; color: #55606E !important; margin-top: 1rem !important; }

/* ---- accessibility floor ------------------------------------------------ */
a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .seat:hover { transform: none; }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; }
  .seat { min-height: 0; }
  .seat .num { font-size: 3.25rem; }
}
@media (max-width: 720px) {
  .line { grid-template-columns: 2.25rem 1fr; row-gap: .6rem; }
  .line .tags { grid-column: 2; justify-content: flex-start; }
  .line .go { grid-column: 2; }
  .facts { gap: 1.5rem; }
  .ticker { gap: 1rem; flex-wrap: wrap; }
}
