/* ============================================================================
   Sanom Ludo — sanomludo.com
   SANOM DEVELOPERS (SMC-PRIVATE) LIMITED
   Single shared stylesheet. Plain CSS, no build step, no framework.
   Edit the tokens in :root to re-theme the whole site.
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #0B4EA2;
  --blue-dark:   #08386F;
  --blue-deep:   #062A55;
  --blue-tint:   #EAF1FA;
  --green:       #1F7A3D;
  --green-tint:  #E8F4EC;

  /* Ludo token colours — small accents only */
  --ludo-red:    #D93A3A;
  --ludo-green:  #2E9E52;
  --ludo-yellow: #E5B23C;
  --ludo-blue:   #2E6FD9;

  /* Neutrals */
  --ink:         #12181F;
  --ink-2:       #3C4754;
  --ink-3:       #5F6B7A;
  --line:        #E2E7EE;
  --line-soft:   #EFF2F6;
  --bg:          #FFFFFF;
  --bg-soft:     #F7F9FC;

  /* Type + layout */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --wrap: 1100px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 31, .06), 0 1px 3px rgba(18, 24, 31, .04);
  --shadow-md: 0 4px 12px rgba(18, 24, 31, .07), 0 2px 4px rgba(18, 24, 31, .04);
  --shadow-lg: 0 18px 40px rgba(6, 42, 85, .13);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #7FB0EE; outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 2.85rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.4rem, 1.16rem + 1.05vw, 1.85rem); letter-spacing: -.015em; }
h3 { font-size: 1.14rem; letter-spacing: -.008em; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
:target { scroll-margin-top: 90px; }

/* --- layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(44px, 6vw, 76px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blue);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__text { display: block; line-height: 1.15; }
.brand b { display: block; color: var(--ink); font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; }
.brand__sub { display: block; font-size: .69rem; color: var(--ink-3); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1.2; margin-top: 1px; }

.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2); font-size: .935rem; font-weight: 550;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--blue-tint); color: var(--blue); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); font-weight: 650; }

@media (max-width: 720px) {
  .site-header .wrap { min-height: 60px; padding-block: 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { padding: 7px 10px; font-size: .88rem; white-space: nowrap; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 460px at 84% -12%, rgba(88, 150, 235, .34), transparent 62%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 52%, var(--blue-deep) 100%);
  color: #fff; padding: clamp(48px, 7vw, 88px) 0; overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .42em; }
.hero__lead { font-size: clamp(1.02rem, .97rem + .32vw, 1.2rem); color: #D5E4F7; max-width: 34em; margin-bottom: 1.6em; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
  color: #EAF2FC; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 100px; margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6FD68F;
}
.hero__art { justify-self: center; width: 100%; max-width: 380px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 300px; margin-top: 6px; }
}

/* --- buttons -------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: .97rem; padding: 12px 22px;
  border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #F3F7FD; }
.btn--ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .11); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.btn[aria-disabled="true"] { opacity: .9; cursor: default; pointer-events: none; }
.btn__sub { display: block; font-size: .68rem; font-weight: 600; opacity: .72;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }

/* --- cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .945rem; color: var(--ink-3); }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 14px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--green { background: var(--green-tint); color: var(--green); }

/* --- section heads -------------------------------------------------------- */
.head { max-width: 40em; margin-bottom: 30px; }
.head--center { margin-inline: auto; text-align: center; }
.head p { color: var(--ink-3); margin-bottom: 0; }
.eyebrow {
  font-size: .755rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 9px;
}

/* --- phone frames (game illustrations) ------------------------------------ */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .shots { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }
.shot { text-align: center; }
.shot__frame {
  background: linear-gradient(170deg, #1B2431, #0E141C);
  border-radius: 26px; padding: 9px; box-shadow: var(--shadow-lg);
  border: 1px solid #2A3543;
}
.shot__screen { border-radius: 19px; overflow: hidden; background: #0B1119; display: block; }
.shot figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 13px; font-weight: 550; }

/* --- legal / prose pages -------------------------------------------------- */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: clamp(34px, 4.5vw, 58px) 0 clamp(28px, 4vw, 46px);
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--ink-3); margin: 0; max-width: 46em; }
.updated {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 14px; margin-top: 16px;
}
.prose { max-width: 780px; }
.prose h2 {
  margin-top: 2.3em; padding-top: .35em; font-size: 1.32rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-child, .prose > :first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.7em; font-size: 1.04rem; color: var(--ink); }
.prose ul li::marker { color: var(--blue); }
.prose ol li::marker { color: var(--blue); font-weight: 650; }

.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 34px;
}
.toc h2 { font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px !important; border: 0 !important; padding: 0 !important; }
.toc ol { margin: 0; padding-left: 1.25em; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: .3em; font-size: .93rem; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* callouts */
.note {
  border-left: 4px solid var(--blue); background: var(--blue-tint);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0;
}
.note--green { border-left-color: var(--green); background: var(--green-tint); }
.note--warn  { border-left-color: #C9821B; background: #FDF4E5; }
.note p:last-child { margin-bottom: 0; }
/* Only the leading strong is the callout title — inner strongs must stay inline. */
.note > p:first-child > strong:first-child { display: block; margin-bottom: .3em; }

/* definition-style data table */
.data-table { width: 100%; border-collapse: collapse; margin: 1.3em 0 1.7em; font-size: .95rem; }
.data-table th, .data-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.data-table th { width: 34%; color: var(--ink); font-weight: 650; background: var(--bg-soft); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.3em 0 1.7em; }
.table-scroll .data-table { margin: 0; min-width: 480px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 18px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.steps strong { display: block; }

/* --- contact blocks ------------------------------------------------------- */
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .2em; }
.contact-card .big {
  font-size: 1.12rem; font-weight: 650; color: var(--blue); word-break: break-word;
}
address { font-style: normal; color: var(--ink-2); }

/* --- footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #A9B4C2; padding: 46px 0 34px;
  font-size: .915rem; line-height: 1.72;
}
.site-footer strong.legal-name {
  color: #fff; font-weight: 700; letter-spacing: .005em; display: block; margin-bottom: 4px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start;
}
@media (max-width: 780px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer address { color: #C3CDDA; } /* address{} defaults to dark ink — unreadable on the dark footer */
.site-footer a { color: #CFD8E3; }
.site-footer a:hover { color: #fff; }
.reg-line { font-size: .87rem; color: #8E9AA9; margin: 8px 0 4px; }
.reg-line span { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links li:not(:last-child)::after { content: "·"; margin: 0 9px; color: #5C6675; }
.footer-links a { font-weight: 550; }
.copyright {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid #232C37;
  font-size: .855rem; color: #7C8797;
}

/* --- utilities ------------------------------------------------------------ */
.muted { color: var(--ink-3); }
.small { font-size: .885rem; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- print (verification staff often print these pages) ------------------- */
@media print {
  .site-header, .site-nav, .hero__art, .btn-row, .shots { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer a, .site-footer strong.legal-name { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .page-head, .section--soft { background: #fff; }
}
