/* ClonBot light UI — shared tokens + base components for the front page, login,
   pricing and the platform. Ink on white; the real slides carry the colour and
   TikTok red only marks "ours" moments. */
:root {
  --paper: #FFFFFF;
  --mist: #F4F3F0;
  --mist-2: #ECEAE6;
  --line: #E5E3DF;
  --ink: #111214;
  --ink-2: #55565B;
  --ink-3: #8C8D92;
  --red: #FE2C55;
  --red-tint: #FFEDF1;
  --green: #1F9D55;
  --green-tint: #E8F6EE;
  --amber: #B7791F;
  --amber-tint: #FCF3E3;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --tt: "TikTok Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
em.s { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
[hidden] { display: none !important; }

.logo { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--sans); letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--ink); color: #fff; font: 600 14.5px/1 var(--sans); border: 0; cursor: pointer;
  white-space: nowrap; transition: transform .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft { background: var(--mist); color: var(--ink); }
.btn.danger { background: var(--paper); color: #B42318; box-shadow: inset 0 0 0 1px #F2C4C0; }
.btn.block { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  background: var(--mist); font: 500 13px/1 var(--sans); color: var(--ink-2); border: 0; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 600 11.5px/1 var(--sans); white-space: nowrap; background: var(--mist); color: var(--ink-2); }
.pill.green { background: var(--green-tint); color: var(--green); }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.amber { background: var(--amber-tint); color: var(--amber); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 10px 14px;
  font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
textarea.input { resize: vertical; }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.err { color: #B42318; font-size: 14px; }
.ok { color: var(--green); font-size: 14px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 12px 30px rgba(17,18,20,.25);
  max-width: min(520px, calc(100vw - 32px)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Selects: one calm control style instead of the browser default */
select.input, .filters select, select.nice {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23111214' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
  padding-right: 36px; transition: border-color .15s, box-shadow .15s;
}
select.input:hover, .filters select:hover, select.nice:hover { border-color: var(--ink-3); }
.filters select { height: 34px; padding-left: 14px; border-radius: 999px; font: 500 13px var(--sans); color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--mist); border-color: var(--ink-3); }
.icon-btn svg { width: 16px; height: 16px; }
