/* CricVeer website: stadium navy, cyan, ball blue and an orange spark (same palette as the app). */
:root {
  --navy: #0b1f4d;
  --navy-2: #13306e;
  --cyan: #29c5f6;
  --blue: #1565d8;
  --orange: #f97316;
  --ink: #0f1b33;
  --muted: #55607a;
  --line: #e6eaf3;
  --bg: #f3f5fb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top img { height: 30px; width: auto; }
.top .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.top img.brand-mark { height: 40px; }
.top nav a { color: var(--navy); text-decoration: none; margin-left: 20px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.top nav { display: flex; }
.top nav a:hover { color: #F26B0F; }

/* Hero */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #E3EEFF 100%); color: var(--navy); padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.hero h1 span { color: #F26B0F; }
.hero p.lead { margin: 0 0 24px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .mark { width: 100%; max-width: 380px; margin-left: auto; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(242, 107, 15, 0.12); color: #C2410C; font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { border: 1.5px solid rgba(19, 41, 75, 0.3); color: var(--navy); }
.btn.soon { background: var(--navy); color: #fff; cursor: default; }
.btn small { font-weight: 600; color: var(--orange); }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 8px; letter-spacing: -0.5px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card .ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; background: #dbeafe; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.band { background: var(--navy); color: #fff; }
.band .sub { color: #c7d2fe; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--navy-2); border-radius: 20px; padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: #c7d2fe; font-size: 14.5px; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.langs span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }

.contact { text-align: center; }
.contact a.mail { font-size: 20px; font-weight: 800; text-decoration: none; }

/* Legal pages */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin: 32px auto 64px; max-width: 820px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; letter-spacing: -0.5px; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 14px 16px; }

/* Footer */
footer { background: var(--navy); color: #c7d2fe; padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; }
footer img { height: 24px; width: auto; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { max-width: 260px; margin: 8px auto 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top nav a { margin-left: 14px; font-size: 13px; }
  .top nav a.hide-sm { display: none; }
  .doc { padding: 22px; margin: 16px; }
}

.flogo { display: inline-flex; background: #fff; padding: 6px 12px; border-radius: 12px; }
.flogo img { height: 22px; width: auto; }

/* "Beta testing" badge, top right of every page */
.top nav a.beta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #fff7ed; border: 1px solid #fdba74; color: #c2410c; font-size: 11.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.top nav a.beta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); animation: beta-pulse 1.8s ease-out infinite; }
.top nav a.beta:hover { background: #ffedd5; color: #9a3412; }
@keyframes beta-pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); } 100% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); } }
@media (max-width: 560px) {
  .top nav a.beta { display: inline-flex !important; padding: 4px 8px; font-size: 10px; }
  .top nav a.beta .beta-more { display: none; }
  .top nav a { margin-left: 8px; }
  .top img { height: 20px; }
  .top img.brand-mark { height: 28px; }
  .top .brand { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .top nav a.beta::before { animation: none; } }

/* Rows the page shows only when that detail is set (see assets/grievance.js). */
[hidden] { display: none !important; }
