/* =========================================================
   ProviderLedger — iGaming B2B directory template
   Token system
   ========================================================= */
:root{
  --bg:        #F6F5FB;
  --surface:   #FFFFFF;
  --tint:      #EFEDFB;
  --ink:       #1B1830;
  --muted:     #5B5876;
  --line:      #E3E1F0;
  --accent:    #4E3BFF;  /* primary indigo — links, structure */
  --bright:    #FF7A3D;  /* bright coral — numerals, highlights */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p{ margin: 0 0 1em; max-width: 66ch; }

a{
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible{ text-decoration: underline; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.header-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.wordmark-dot{ color: var(--bright); }
.header-tag{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero{ padding: 64px 0 48px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero h1{
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 22ch;
}
.lede{
  font-size: 1.125rem;
  color: var(--ink);
  max-width: 58ch;
}
.hero-copy p:not(.lede){ color: var(--muted); }

.faq-block{ margin-bottom: 1.5em; }
.faq-q{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.4em;
}
.faq-a{
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.why-heading{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 1.5em 0 0.6em;
}
.why-list{
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-list li{
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  max-width: 58ch;
}
.why-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--bright);
  border-radius: 50%;
}

.stat-panel{
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
}
.stat-row{
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.stat-row:last-child{ border-bottom: none; }
.stat-num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bright);
  min-width: 2.5ch;
}
.stat-label{
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Intro band ---------- */
.intro-band{
  background: var(--tint);
  padding: 40px 0;
}
.intro-band-inner p{
  margin: 0;
  max-width: 62ch;
  color: var(--ink);
}

/* ---------- Directory / numbered list ---------- */
.directory{ padding: 56px 0 40px; }
.directory h2{ font-size: 1.5rem; margin-bottom: 1.25em; }

.provider-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.provider-row{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.provider-row:hover{ background: var(--tint); }

.p-num{
  font-family: var(--font-mono);
  color: var(--bright);
  font-size: 0.95rem;
  padding-top: 2px;
}
.p-body{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.p-name:hover, .p-name:focus-visible{ color: var(--accent); }
.p-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--tint);
  padding: 2px 8px;
  border-radius: 3px;
  width: fit-content;
}
.p-desc{
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}

.list-footnote{
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.solution-group{ margin-bottom: 40px; }
.solution-group h3{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.simple-provider-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.simple-provider-list li{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.simple-provider-list li:last-child{ border-bottom: none; }
.simple-provider-list a{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.simple-provider-list a:hover, .simple-provider-list a:focus-visible{ color: var(--accent); }

/* ---------- Reusable data table ----------
   Not used on this page (this build uses the numbered list above),
   but kept ready for template variants that present providers as a
   comparison table (spec, category, link columns) instead of a list. */
.data-table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.data-table th{
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 10px 16px 10px 0;
}
.data-table td{
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 12px 0;
  color: var(--muted);
  vertical-align: top;
}
.data-table td:first-child, .data-table th:first-child{
  color: var(--ink);
  font-weight: 500;
}
.data-table tr:hover td{ background: var(--tint); }
.data-table a{ font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
}
.footer-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px){
  .hero-grid{ grid-template-columns: 1fr; gap: 32px; }
  .hero{ padding: 40px 0 32px; }
  .provider-row{ grid-template-columns: 40px 1fr; }
}

/* ---------- Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
