/* WORLDLOTTOTHS — shared styles for index / privacy / terms
   Brand colour is the app's ColorMain (#019DF4). */

:root {
  --brand: #019df4;
  --brand-dark: #0176b6;
  --brand-soft: #e6f5fe;
  --ink: #10202b;
  --ink-soft: #4a6070;
  --line: #dfe8ee;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(1, 157, 244, 0.10);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand strong {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 50% -140px, rgba(1, 157, 244, 0.22), transparent 70%),
    linear-gradient(180deg, var(--brand-soft), var(--bg));
  padding: 76px 0 68px;
  text-align: center;
}

.hero-logo {
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(1, 157, 244, 0.28);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero p.tagline {
  margin: 0 auto 30px;
  max-width: 640px;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---------- Sections ---------- */

section { padding: 68px 0; }

.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
}

.section-lead {
  margin: 0 auto 42px;
  max-width: 620px;
  text-align: center;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 157, 244, 0.45);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.card .icon svg { width: 24px; height: 24px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Numbered "how it works" list */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

.steps h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 500; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Disclaimer callout */

.callout {
  border: 1px solid rgba(1, 157, 244, 0.35);
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.callout h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 500; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Legal pages ---------- */

.page-head {
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  padding: 54px 0 40px;
  text-align: center;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 600;
}

.page-head .updated {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 68px;
}

.legal h2 {
  margin: 40px 0 12px;
  padding-top: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.legal h2:first-of-type { border-top: 0; margin-top: 0; }

.legal h3 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
}

.legal p { margin: 0 0 14px; color: var(--ink-soft); }

.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--ink); font-weight: 500; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.back-home:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 40px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-links a:hover { color: var(--brand-dark); }

.footer small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a:last-child { border-bottom: 0; }

  section { padding: 52px 0; }

  .hero { padding: 56px 0 50px; }
}

/* ---------- Dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf2f7;
    --ink-soft: #a8bcc9;
    --line: #24333e;
    --bg: #0d161c;
    --bg-alt: #111d25;
    --brand-soft: #102b3c;
    --brand-dark: #4fbcff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }

  .header { background: rgba(13, 22, 28, 0.92); }
  .card,
  .steps li,
  .btn-ghost,
  .nav-menu { background: var(--bg-alt); }
  .btn-ghost { color: var(--brand-dark); }
}

