/* arbiter.chessrooq.com: product site and developer guide for ChessRooq Arbiter. System fonts only. */
:root {
  --brand: #3d2a6e; --brand-2: #5b4192; --brand-3: #7b62b8; --accent: #c98a1e; --accent-2: #e8b04a;
  --bg: #faf9fc; --paper: #ffffff; --tint: #f1edf8; --tint-2: #e8e1f4;
  --ink: #1d1a24; --ink-2: #5f5a6b; --line: #e6e2ee; --ok: #1d7a46; --radius: 16px;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* Header */
.top { background: rgba(250,249,252,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff;
  display: grid; place-items: center; font-size: 19px; box-shadow: 0 4px 12px rgba(61,42,110,.3); }
.brand b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.brand b span { color: var(--brand-2); }
.top nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: var(--tint); }
.top nav a.on { color: var(--brand); background: var(--tint-2); }
.top nav a.cta { background: var(--brand); color: #fff; margin-left: 6px; }
.top nav a.cta:hover { background: var(--brand-2); }
@media (max-width: 760px) { .top .wrap { height: auto; padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .top nav a { padding: 6px 10px; font-size: 13.5px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 88% -8%, rgba(232,176,74,.20), transparent 60%),
  radial-gradient(800px 600px at -10% 120%, rgba(123,98,184,.35), transparent 60%), linear-gradient(165deg, #2a1c4f 0%, #3d2a6e 55%, #24183f 100%); color: #e9e3f6; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 22px 92px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #f3c86c, #e8b04a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19.5px; color: #d6cdea; max-width: 33em; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 650; color: #f3dca8; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding: 56px 22px 64px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 650; font-size: 15.5px; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; background: var(--accent-2); color: #24170a; transition: transform .08s, background .15s, box-shadow .15s;
  box-shadow: 0 8px 22px rgba(201,138,30,.3); }
.btn:hover { background: #f1bf5e; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.brand { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(61,42,110,.25); }
.btn.brand:hover { background: var(--brand-2); }
.btn.line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { background: var(--tint); }
.btn.wa { background: #25D366; color: #fff; box-shadow: none; }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Sections and cards */
section { padding: 76px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: linear-gradient(165deg, #2a1c4f, #3d2a6e); color: #e2dbf1; }
section.dark h2, section.dark h3 { color: #fff; }
.kicker { font-size: 12.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 10px; }
section.dark .kicker { color: var(--accent-2); }
.sub { font-size: 18.5px; color: var(--ink-2); max-width: 46em; }
section.dark .sub { color: #cfc5e6; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(29,26,36,.04); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
.card.link:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(61,42,110,.13); }
section.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e2dbf1; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand-2); display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--tint-2); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
section.dark ul.ticks li::before { color: var(--accent-2); }
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
section.dark .stat b { color: #fff; }
.stat span { font-size: 14.5px; color: var(--ink-2); }
section.dark .stat span { color: #cfc5e6; }

/* Page header */
.pagehead { background: linear-gradient(165deg, #2a1c4f, #3d2a6e); color: #ddd5ee; padding: 52px 0 46px; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); }
.pagehead .lead { max-width: 46em; font-size: 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .06em; background: var(--accent-2); color: #24170a; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* Long-form reading */
.prose { font-size: 18px; line-height: 1.72; }
.prose h2 { margin-top: 54px; font-size: clamp(24px, 3vw, 32px); }
.prose p, .prose li { color: #2c2836; }
.prose blockquote { margin: 26px 0; padding: 18px 22px; border-left: 4px solid var(--accent-2); background: var(--paper); border-radius: 0 14px 14px 0; font-size: 19px; color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 20px 0; border-left: 2px solid var(--tint-2); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px var(--bg); }
.timeline b { display: block; color: var(--brand); font-size: 15px; }

pre.snippet { background: #1b1530; color: #e6def7; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0; font-family: var(--mono); }
.note { background: var(--tint); border-radius: 12px; padding: 12px 16px; color: var(--brand); font-size: 14.5px; }

footer { background: #1b1330; color: #a99fbf; font-size: 14px; padding: 46px 0 40px; }
footer a { color: #e8dcff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
footer .cols div > a { display: block; margin: 0 0 7px; }
footer .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
