/* Entry point of the design system: every site page links only this file, then its own layout file. */
/* Design tokens: the one place where colours, type, spacing and radii are decided.
   Pages and components use these names; they never write a colour or a font directly.
   Change a value here and it changes everywhere. Catalogue: /tasarim (development). */
:root {
  /* ----- colour: text and surfaces ----- */
  --ink: #0f1222; /* main text */
  --ink-soft: #3a3f58; /* text on small chips */
  --muted: #5d6178; /* secondary text */
  --paper: #ffffff; /* page and cards */
  --surface: #f7f7fb; /* quiet sections and tiles */
  --chip: #f5f6fa; /* small pills */
  --track: #ecedf4; /* empty progress track, neutral tags */
  --line: #e4e5ef; /* hairlines and card outlines */
  --line-strong: #d7d9e6; /* input and secondary-button outlines */

  /* ----- colour: brand ----- */
  --violet: #5b3df5; /* the one action colour */
  --violet-deep: #4326d9; /* hover, links */
  --violet-tint: #f1eeff; /* tinted backgrounds */

  /* ----- colour: meaning ----- */
  --ok: #12a150;
  --ok-deep: #0c7a3c;
  --ok-tint: #e3f6ea;
  --no: #d0344c;
  --warn-tint: #fff4c2;
  --warn-ink: #5a4a00;

  /* ----- colour: TikTok accents, used sparingly (two screenshot edges and the live dot) ----- */
  --tt-red: #fe2c55;
  --tt-cyan: #25f4ee;

  /* ----- colour: the customer panel (decision K62): brighter accents for cards, badges and the welcome card ----- */
  --hot: #ff3d7f; /* earning, invitations */
  --hot-deep: #d81e60;
  --hot-tint: #ffe9f1;
  --sky: #0aa5c2; /* time left */
  --sky-tint: #e1f7fb;
  --sun: #f59e0b; /* highlights on dark or coloured ground */
  --sun-deep: #9a6400; /* text on the sun tint */
  --sun-tint: #fff3d6;
  --grad-brand: linear-gradient(135deg, var(--violet) 0%, #9a3df5 50%, var(--hot) 100%); /* the welcome card, the active menu item */

  /* ----- type ----- */
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* addresses and codes meant to be copied */
  --size-hero: clamp(34px, 4vw, 56px); /* the one big headline on the home page */
  --size-h2: clamp(28px, 3vw, 40px); /* section headings */
  --size-body: 16px; /* running text */
  --weight-heading: 800; /* headings and big numbers */
  --lead-heading: 1.1; /* line height of big headings */
  --track-display: -0.028em; /* letter spacing: the biggest headings */
  --track-heading: -0.022em; /* letter spacing: headings */
  --track-soft: -0.01em; /* letter spacing: small headings */

  /* ----- shape and space ----- */
  --radius: 22px; /* cards */
  --radius-s: 14px; /* inputs, small boxes */
  --radius-pill: 999px; /* buttons, pills, tags */
  --gutter: clamp(18px, 4vw, 56px); /* page side padding */
  --wide: 1240px; /* widest content */

  /* ----- depth ----- */
  --shadow-violet: 0 12px 28px rgba(91, 61, 245, 0.32); /* under the main button */
  --shadow-lift: 0 20px 44px rgba(91, 61, 245, 0.14); /* highlighted card */
  --shadow-float: 0 30px 60px rgba(24, 20, 70, 0.22); /* screenshots, dialogs */
}

/* Typefaces, served from our own server (no request to Google). Files come from npm packages. */
@font-face {
  font-family: 'Jakarta';
  font-weight: 200 800;
  font-display: swap;
  src: url('/vendor/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jakarta';
  font-weight: 200 800;
  font-display: swap;
  src: url('/vendor/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base: resets and the default look of plain elements. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--size-body)/1.55 var(--font);
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}
h2 {
  font-size: var(--size-h2);
  font-weight: var(--weight-heading);
  line-height: var(--lead-heading);
  letter-spacing: var(--track-heading);
  text-wrap: balance;
}
h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--track-soft);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* Components: the reusable parts every page is assembled from (buttons, pills, lists, forms, tags).
   A page stylesheet only arranges these; it does not restyle them. See /tasarim for the catalogue. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-main {
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn-main:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}
.btn-alt {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-alt:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--violet-deep);
}
.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 25px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-display);
  text-decoration: none;
}
.brand svg {
  width: 24px;
  height: 24px;
  fill: var(--violet);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 14px;
  font-weight: 700;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tt-red);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.chips li {
  position: relative;
  padding: 7px 14px 7px 30px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.chips li::before,
.facts li::before,
.compare-new li::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: translateY(-70%) rotate(-45deg);
}
.facts {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
}
.facts li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
}
.facts li::before {
  left: 3px;
  width: 10px;
}
.soon {
  justify-self: start;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--track);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.btn-s {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.textlink {
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet-deep);
  font: 600 15px/1.4 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form {
  display: grid;
  gap: 8px;
}
.form label {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}
.form input,
.at-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: 500 16px/1 var(--font);
}
.form input:focus,
.at-input:focus-within {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--violet);
}
.form .btn {
  margin-top: 14px;
  justify-self: start;
}
.form-hint {
  color: var(--muted);
  font-size: 14px;
}
.form-note {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}
.form-note[data-kind='error'] {
  color: var(--no);
}
.form-note[data-kind='ok'] {
  color: var(--ok-deep);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
/* a plain message page (a dead stream link, a missing game) */
.notice {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 18vh auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.notice h1 {
  font-size: 28px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.notice p {
  color: var(--muted);
}
.at-input {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 14px;
}
.at-input span {
  color: var(--muted);
  font-weight: 700;
}
.at-input input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font: 600 16px/1 var(--font);
}
.at-input input:focus {
  outline: none;
  box-shadow: none;
}
.tag {
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  vertical-align: 2px;
}
.tag-ok {
  background: var(--ok-tint);
  color: var(--ok-deep);
}
.bar {
  height: 8px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: var(--track);
  overflow: hidden;
}
.bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--violet);
}

/* where the robot check appears when it needs the visitor; takes no room otherwise */
/* Where the robot check appears, in the rare case it needs the visitor. The box is always in the
   form and takes no room of its own (it cancels the form's row gap), so the button below does not
   move when the check loads. */
.robot {
  margin-top: -8px;
}

/* ---------- data tables (the owner's page) ---------- */
.table-wrap {
  /* positioned, so the screen-reader-only labels inside the table scroll with it and cannot widen the page */
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr {
  border-top: 1px solid var(--line);
}
.table .dim {
  color: var(--muted);
}
.tag-wait {
  background: var(--warn-tint);
  color: var(--warn-ink);
}
.tag-off {
  background: var(--track);
  color: var(--ink-soft);
}
.table .tag {
  margin-left: 0;
}
.form select,
.search input {
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: 500 16px/1 var(--font);
}
.form select:focus,
.search input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--violet);
}
/* a short list of states: what is set up and what is not */
.checks {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-size: 15px;
}
.checks li {
  padding-left: 20px;
  position: relative;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
.checks .check-no::before {
  background: var(--no);
}
/* label and value pairs */
dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 15px;
}
dt {
  color: var(--muted);
}

/* a password field with an eye that shows and hides what was typed */
.pass {
  position: relative;
}
.form .pass input {
  padding-right: 52px;
}
.pass-eye {
  position: absolute;
  top: 0;
  right: 4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 100%;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.pass-eye:hover {
  color: var(--ink);
}
.pass-eye svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form .pass-eye.pass-eye {
  margin: 0;
}
.pass-eye .eye-off,
.pass-eye[aria-pressed='true'] .eye-on {
  display: none;
}
.pass-eye[aria-pressed='true'] .eye-off {
  display: block;
}

/* a checkbox with its sentence */
.form .check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.form .check input {
  flex: none;
  width: 18px;
  min-height: 0;
  height: 18px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--violet);
}

/* ---------- a pop-up announcement on the site ---------- */
.popup {
  width: min(92vw, 440px);
  padding: 30px 28px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.popup::backdrop {
  background: rgba(15, 18, 34, 0.45);
}
.popup h2 {
  padding-right: 28px;
  font-size: 24px;
  font-weight: var(--weight-heading);
  line-height: 1.15;
  letter-spacing: var(--track-heading);
}
.popup p {
  margin-top: 10px;
  color: var(--ink-soft);
}
.popup .btn {
  margin-top: 20px;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.popup-close:hover {
  color: var(--ink);
}

/* ---------- the cookie notice: one quiet line in the corner, never over the page ---------- */
.cookie-note {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(24, 20, 70, 0.14), inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.cookie-note a {
  color: inherit;
}
.cookie-note button {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* on a phone it sits above the buy bar of the home page, if there is one */
@media (max-width: 860px) {
  body:has(.buybar) .cookie-note {
    bottom: 84px;
  }
}

/* a longer answer */
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.form textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--violet);
}

