/* Feesha — playfeesha.com. Palette and type mirror app/lib/theme.dart. */
:root {
  --cream: #FFF6EA;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6259;
  --muted-light: #8C8175;
  --terracotta: #FF5A2E;
  --terracotta-pressed: #E8451B;
  --terracotta-deep: #C22F0E;
  --terracotta-tint: #FFDCC9;
  --terracotta-soft: #FFF1E6;
  --chip: #F3E5C9;
  --line: #E6D3A9;
  --sage: #20C171;
  --sage-bg: #D3F7E3;
  --sage-text: #0C6B3B;
  --spark: #FFC93C;
  --board: #14213D;
  --board-muted: #94A2C2;
  --board-muted-2: #BAC5DC;
  --spent: #223259;

  --display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --body: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --latin: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-pressed); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.latin { font-family: var(--latin); }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

/* ---------- header ---------- */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 12px rgba(194, 47, 14, .25); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; padding-top: 6px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--chip); color: var(--ink); }

/* ---------- buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 26px; border-radius: 999px; font: 800 18px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 0 var(--terracotta-deep); }
.btn-primary:hover { background: var(--terracotta-pressed); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { background: var(--chip); color: var(--ink); }

.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 22px; border-radius: 16px; background: var(--ink); color: #fff; min-width: 190px; }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 12px; line-height: 1.2; opacity: .75; }
.store b { display: block; font: 700 18px/1.2 var(--latin); white-space: nowrap; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { display: inline-block; font-size: 14px; font-weight: 700; color: var(--terracotta-deep); background: var(--terracotta-tint); padding: 4px 12px; border-radius: 999px; }

/* ---------- hero ---------- */
.hero { padding-block: 28px 72px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 104px); line-height: 1; margin: 0 0 8px; color: var(--terracotta-deep); padding-top: .12em; }
.hero .tag { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; margin: 0 0 16px; }
.hero .lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 34ch; }
.hero .soon { margin-bottom: 12px; }

/* The board mock — the navy game board from board_screen.dart. */
.board { background: var(--board); border-radius: 28px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(20, 33, 61, .55); transform: rotate(-1.5deg); position: relative; }
.board::before, .board::after { content: ""; position: absolute; width: 14px; height: 54px; border-radius: 999px; background: var(--spark); }
.board::before { top: -30px; inset-inline-end: 34px; transform: rotate(-35deg); }
.board::after { top: -18px; inset-inline-end: -8px; transform: rotate(-70deg); }
.scores { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.team { display: flex; flex-direction: column; align-items: center; background: var(--spent); border-radius: 16px; padding: 6px 14px; min-width: 104px; }
.team small { color: var(--board-muted-2); font-size: 13px; font-weight: 700; }
.team b { font: 800 24px/1.1 var(--latin); color: #fff; }
.team.on { box-shadow: 0 0 0 2px var(--terracotta); }
.turn { color: var(--board-muted); font-size: 14px; font-weight: 700; text-align: center; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.col { display: grid; gap: 6px; align-content: start; }
.col h4 { margin: 0 0 2px; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; min-height: 34px; display: grid; place-items: center; }
.tile { display: grid; place-items: center; height: 40px; border-radius: 12px; background: var(--terracotta); color: #fff; font: 800 17px/1 var(--latin); box-shadow: 0 3px 0 var(--terracotta-deep); }
.tile.spent { background: var(--spent); color: var(--board-muted); box-shadow: none; }
.tile.picked { background: var(--sage); box-shadow: 0 3px 0 #17A05C; transform: rotate(-4deg) scale(1.06); }

/* ---------- stat strip ---------- */
.stats { background: var(--paper); border-block: 2px solid var(--chip); }
.stats ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 40px; line-height: 1.1; color: var(--terracotta-deep); padding-top: 6px; }
.stats span { color: var(--muted); font-weight: 700; font-size: 16px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 16px; }
.section { padding-block: 80px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; margin: 0 0 10px; padding-top: 6px; }
.section .intro { color: var(--muted); margin: 0 0 40px; max-width: 58ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px 22px; border: 2px solid var(--chip); counter-increment: step; }
.steps li::before { content: counter(step, arabic-indic); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--terracotta-tint); color: var(--terracotta-deep); font: 800 24px/1 var(--display); padding-top: 4px; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border-radius: var(--radius); padding: 28px 24px; }
.feature h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.feature p { margin: 0; font-size: 17px; }
.feature .ico { width: 48px; height: 48px; margin-bottom: 14px; }
.f1 { background: var(--sage-bg); color: var(--sage-text); }
.f2 { background: var(--terracotta-tint); color: var(--terracotta-deep); }
.f3 { background: var(--board); color: var(--board-muted-2); }
.f3 h3 { color: #fff; }
.feature p { opacity: .9; }

.cats { background: var(--terracotta-soft); }
.groups { columns: 3 280px; column-gap: 20px; }
.group { break-inside: avoid; background: var(--paper); border-radius: var(--radius); padding: 20px 20px 16px; margin-bottom: 20px; border: 2px solid var(--chip); }
.group h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--terracotta-deep); }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.group li { background: var(--chip); border-radius: 999px; padding: 4px 14px; font-size: 16px; font-weight: 700; }

.cta { text-align: center; }
.cta .card { background: var(--terracotta); color: #fff; border-radius: 32px; padding: 56px 24px; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { margin: 0 auto 28px; max-width: 46ch; color: #FFF1E6; }
.cta .store-row { justify-content: center; }
.cta .store { background: var(--ink); }

/* ---------- prose pages ---------- */
.page { padding-block: 32px 80px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 56px); line-height: 1.15; margin: 0 0 6px; padding-top: 8px; }
.prose .updated { color: var(--muted-light); margin: 0 0 32px; font-size: 16px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 40px 0 10px; }
.prose p, .prose li { color: #2e2a26; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; font-size: 16px; margin: 12px 0; }
.prose th, .prose td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--chip); vertical-align: top; }
.prose th { background: var(--chip); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--paper); border: 2px solid var(--chip); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
.callout.warn { background: var(--terracotta-soft); border-color: var(--terracotta-tint); }
.path { display: inline-block; background: var(--chip); border-radius: 10px; padding: 0 10px; font-weight: 800; }
.en { direction: ltr; text-align: left; font-family: var(--latin); margin-top: 72px; padding-top: 40px; border-top: 2px solid var(--chip); }
.en h1 { font-family: var(--latin); font-size: clamp(32px, 5vw, 44px); }
.en h2 { font-family: var(--latin); font-size: 22px; }
.lang-jump { font-size: 16px; font-weight: 700; }
.faq details { background: var(--paper); border: 2px solid var(--chip); border-radius: 18px; padding: 14px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 19px; }
.faq details p { margin: 10px 0 2px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CFC6BC; padding-block: 40px; font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { font-size: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: #CFC6BC; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { width: 100%; margin: 0; color: #8C8175; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .lead { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav a { padding: 6px 10px; font-size: 15px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding-block: 60px; }
  .board { padding: 12px; border-radius: 22px; }
  .cols { gap: 5px; }
  .col h4 { font-size: 11.5px; min-height: 30px; }
  .tile { height: 34px; font-size: 14px; border-radius: 10px; }
  .team { min-width: 84px; padding: 4px 10px; }
  .team b { font-size: 20px; }
  .turn { font-size: 12px; }
  .store { min-width: 0; flex: 1 1 160px; }
  .cta .card { padding: 44px 18px; border-radius: 26px; }
}
