/* Sort Rush site, mirrors the game's Classic palette (spec §22). */
:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #5b5fef;
  --border: #e5e7eb;
  --red: #ef4444; --blue: #3b82f6; --yellow: #eab308; --green: #22c55e;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --card: #1e293b; --text: #f1f5f9;
    --muted: #94a3b8; --primary: #818cf8; --border: #334155;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none;
}
nav a {
  color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 600;
  display: inline-block; padding: 10px 0; /* 44px-ish touch target */
}
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
nav a:first-child { margin-left: 0; }
nav { display: flex; flex-wrap: wrap; column-gap: 18px; }
nav a { margin-left: 0; }

main { padding: 40px 0 56px; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 22px 0 4px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

.hero { display: grid; gap: 32px; align-items: center; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }


.badge {
  display: inline-block; margin-top: 20px; padding: 12px 22px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-weight: 700; text-decoration: none;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin-top: 0; }

.legal h2 { border-top: 1px solid var(--border); padding-top: 24px; }
.legal li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0; font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* ---- Landing page, v1.1 ---------------------------------------------- */
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
section { margin-top: 56px; }
.hero { margin-top: 8px; }
.eyebrow {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary);
}
.section-lead { color: var(--muted); margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 10px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.text-link { font-weight: 700; margin-top: 20px; }

/* Two real screens, one tilted behind the other. */
.phones { position: relative; display: flex; justify-content: center; min-height: 440px; }
.phone {
  width: 210px; height: auto; border-radius: 28px;
  border: 7px solid #1f2340; background: #1f2340;
  box-shadow: 0 24px 48px -16px rgba(40, 42, 110, .45);
}
.phone-front { position: relative; z-index: 1; transform: translateX(28px); }
.phone-back {
  position: absolute; top: 34px; left: 50%;
  transform: translateX(-110%) rotate(-8deg); opacity: .9;
}
@media (max-width: 720px) {
  .phones { min-height: 400px; }
  .phone { width: 180px; }
}

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px 14px 60px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px;
}

.feature-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 720px) { .feature-split { grid-template-columns: 1fr; } }
.shot {
  width: 100%; max-width: 250px; height: auto; justify-self: center;
  border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(40, 42, 110, .4);
}
.plain { padding-left: 20px; display: grid; gap: 8px; }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); display: block;
}
.gallery figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.faq details p { margin: 0 0 12px; color: var(--muted); }

.maker {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 22px 12px;
}
