/* SumGrid website — "Sky Tones" glass look, same palette as the app (src/theme.ts). Light only. */
:root {
  color-scheme: light;
  --ground: #F7F9FE;
  --ink: #1B2A3F;
  --muted: #627189;
  --faint: #8A96AA;
  --line: #D3DEEC;
  --primary: #86ABE4;
  --accent: #7EA2DB;
  --digit: #4A72B5;
  --deep: #3B6BB0;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(74, 114, 181, 0.12), 0 2px 6px rgba(27, 42, 63, 0.05);
  --radius: 26px;
  --display: "Sora", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
/* Blurred pastel sky behind everything: baby blue, lilac, mint. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 34vmax at 18% 12%, rgba(134, 171, 228, 0.42), transparent 70%),
    radial-gradient(36vmax 30vmax at 88% 22%, rgba(196, 178, 236, 0.38), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 92%, rgba(170, 222, 205, 0.32), transparent 70%),
    radial-gradient(30vmax 26vmax at 8% 80%, rgba(176, 200, 240, 0.30), transparent 70%);
  filter: blur(20px);
}
a { color: var(--deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

/* Header */
.top { position: sticky; top: 0; z-index: 10; padding: 12px 0; }
.top .bar { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 14px; border-radius: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 12px; }
.top nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #7EA2DB, #5F88C8); }
.top nav a.btn-glass { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 18px;
  font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #7EA2DB, #5F88C8); color: #fff; box-shadow: 0 8px 20px rgba(95, 136, 200, 0.4); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(126, 162, 219, 0.6); }
.btn-glass { background: rgba(255, 255, 255, 0.75); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.btn-glass:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 64px; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-edge); padding: 8px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--deep); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 14px; color: var(--faint); margin-top: 14px; }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95); box-shadow: 0 24px 60px rgba(59, 107, 176, 0.25);
  background: #fff;
}
.phone.a { left: 4%; top: 30px; transform: rotate(-6deg); }
.phone.b { right: 4%; top: 0; transform: rotate(5deg); z-index: 1; }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.game img { border-radius: 16px; aspect-ratio: 9 / 13; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.game h3 { font-size: 20px; }
.game p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tag { align-self: flex-start; font: 700 11px/1 var(--body); letter-spacing: 0.08em; color: #fff; background: var(--accent); padding: 6px 8px; border-radius: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; }
.feature .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(180deg, #EAF1FC, #DCE7F8); color: var(--deep); margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.band { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.band p { margin: 0; color: var(--muted); }

/* Ad slots (AdSense). Empty until AdSense approves the site; they take no space while empty. */
.ad { margin: 24px auto; text-align: center; min-height: 0; }
.ad:empty { display: none; }
/* Google marks slots it couldn't fill (e.g. before the site is approved); hide them instead of leaving a gap. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }

/* Text pages (how to play, privacy, terms) */
.doc { max-width: 820px; margin: 24px auto 64px; padding: clamp(24px, 4vw, 48px); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: #2C3B52; }
.doc .muted { color: var(--muted); }
.doc li { margin: 6px 0; }
.doc figure { margin: 18px 0; }
.doc figure img { width: min(300px, 100%); border-radius: 18px; border: 1px solid var(--line); }
kbd { font: 600 13px/1 var(--body); padding: 3px 7px; border-radius: 7px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); }

/* Footer */
footer { padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
  /* Side-by-side screenshots in normal flow, so they can't spill into the next section. */
  .phones { height: auto; display: flex; justify-content: center; max-width: 460px; width: 100%; margin: 0 auto; padding: 8px 0 24px; }
  .phone { position: relative; width: 46%; max-width: 210px; }
  .phone.a { left: auto; top: 24px; margin-right: -4%; }
  .phone.b { right: auto; top: 0; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top nav a.hide-sm { display: none; }
  .phone { border-width: 4px; border-radius: 24px; }
  .games { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game { padding: 12px; }
  .game h3 { font-size: 17px; }
  .game p { font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 28px 22px; }
  .cta .btn { flex: 1 1 100%; }
}
