/* ============================================================
   Sudoku Sally — shared stylesheet
   Design system matched to the app
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg-0: #0a0a1a;
  --bg-1: #12122a;
  --bg-2: #1a1a3a;

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.08);

  /* Accents */
  --green-1: #4ade80;
  --green-2: #22c55e;
  --blue: #60a5fa;
  --pink: #f472b6;
  --amber: #fbbf24;

  /* Text */
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;

  /* Gradients */
  --grad-green: linear-gradient(135deg, #4ade80, #22c55e);
  --grad-bg: linear-gradient(160deg, #0a0a1a 0%, #12122a 45%, #1a1a3a 100%);

  /* Shape */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Glow */
  --glow-green: 0 0 40px rgba(74, 222, 128, 0.25);

  /* Layout */
  --maxw: 1160px;
  --header-h: 70px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  background-image: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient glow blobs behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}
body::before {
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, var(--green-1), transparent 70%);
}
body::after {
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding-block: 84px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-1);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.text-grad {
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-green);
  color: #06210f;
  box-shadow: var(--glow-green);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand .wordmark {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand .wordmark span {
  color: var(--green-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-links a.active {
  color: var(--text);
}
.nav-links a.nav-cta {
  margin-left: 8px;
  background: var(--grad-green);
  color: #06210f;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.28);
}
.nav-links a.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--grad-green);
  color: #06210f;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 26px;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 13px 14px;
    font-size: 1.02rem;
  }
  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 86px;
  padding-bottom: 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-1);
  box-shadow: 0 0 10px var(--green-1);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero .lede {
  color: var(--muted-2);
  font-size: 1.06rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stats .stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stats .stat .label {
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-visual .glow-ring {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    circle,
    rgba(74, 222, 128, 0.22),
    transparent 65%
  );
  filter: blur(30px);
  z-index: 0;
}

/* ---------- Big brand sudoku card ---------- */
.sudoku-card {
  position: relative;
  z-index: 1;
  width: min(420px, 86vw);
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #15152e, #0d0d20);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--glow-green);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.sudoku-card .mini-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 14px);
}
.sudoku-card .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--muted-2);
}
.sudoku-card .cell.filled {
  color: var(--green-1);
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.28);
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.5);
}
.sudoku-card .cell.pop {
  animation: cellPop 0.5s ease both;
}
@keyframes cellPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero .lede {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-stats {
    justify-content: center;
  }
}

/* ============================================================
   Cards & grids
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 222, 128, 0.35);
  background: var(--surface-2);
}
.card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Accent colour variants for icons */
.icon-blue {
  background: rgba(96, 165, 250, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}
.icon-pink {
  background: rgba(244, 114, 182, 0.12) !important;
  border-color: rgba(244, 114, 182, 0.25) !important;
}
.icon-amber {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.25) !important;
}

/* ============================================================
   Difficulty showcase
   ============================================================ */
.difficulty-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.diff-card {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
}
.diff-card .diff-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 14px;
}
.diff-card .diff-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.diff-card .diff-dots i.on {
  background: var(--lvl, var(--green-1));
  box-shadow: 0 0 10px var(--lvl, var(--green-1));
}
.diff-card h4 {
  font-size: 1.1rem;
  color: var(--lvl, var(--text));
  margin-bottom: 4px;
}
.diff-card p {
  font-size: 0.85rem;
  color: var(--muted-2);
}
@media (max-width: 760px) {
  .difficulty-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Phone mockups (screenshots & teaser)
   ============================================================ */
.phone {
  position: relative;
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #1c1c38, #0c0c1e);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
.phone:hover {
  transform: translateY(-8px);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0a0a1a;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--grad-bg);
  display: flex;
  flex-direction: column;
  padding: 26px 14px 14px;
  gap: 10px;
}
.phone .screen .scr-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--green-1);
  margin-bottom: 4px;
}

/* mini board inside phones */
.scr-board {
  width: 100%;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.scr-board span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11112a;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
}
.scr-board span.g {
  color: var(--green-1);
}
.scr-board span.b {
  color: var(--blue);
}
.scr-board span.sel {
  background: rgba(74, 222, 128, 0.18);
}

.scr-pad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: auto;
}
.scr-pad span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

/* level select mock */
.scr-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scr-levels .lvl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  font-size: 0.72rem;
  font-weight: 600;
}
.scr-levels .lvl .tag {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--green-1);
}
.scr-levels .lvl.locked {
  opacity: 0.5;
}
.scr-levels .lvl.locked .tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
}

/* challenge mock = two mini boards */
.scr-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.scr-versus .vs {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--pink);
}
.mini9 {
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px;
}
.mini9 i {
  border-radius: 3px;
  background: #13132c;
}
.mini9 i.f {
  background: rgba(74, 222, 128, 0.4);
}
.mini9.foe i.f {
  background: rgba(244, 114, 182, 0.4);
}

/* stats mock */
.scr-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scr-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  font-size: 0.74rem;
  color: var(--muted);
}
.scr-stats .stat-row b {
  color: var(--text);
  font-size: 0.9rem;
}
.scr-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 60px;
  padding: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--surface-border);
}
.scr-bars i {
  flex: 1;
  background: var(--grad-green);
  border-radius: 3px 3px 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.gallery figure {
  text-align: center;
}
.gallery figcaption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* teaser strip */
.teaser-strip {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.teaser-strip .phone {
  flex: 0 0 230px;
  scroll-snap-align: center;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  box-shadow: var(--glow-green);
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}
.cta-band .hero-cta {
  justify-content: center;
}

/* ============================================================
   Generic page hero (sub-pages)
   ============================================================ */
.page-hero {
  text-align: center;
  padding-top: 70px;
  padding-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   How to play
   ============================================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rule {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
.rule .num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
.step .step-n {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  background: var(--grad-green);
  color: #06210f;
}
.step h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* example board (how-to) */
.example-board {
  width: min(360px, 90vw);
  margin: 0 auto;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(74, 222, 128, 0.4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--glow-green);
}
.example-board span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11112a;
  font-size: clamp(0.9rem, 4vw, 1.3rem);
  font-weight: 700;
  color: var(--muted);
}
.example-board span.fixed {
  color: var(--text);
}
.example-board span.user {
  color: var(--green-1);
}
.example-board span.note {
  font-size: 0.55rem;
  color: var(--muted-2);
  font-weight: 600;
  line-height: 1;
  align-content: center;
}
.example-board span.hl {
  background: rgba(74, 222, 128, 0.15);
}
/* 3x3 block separators */
.example-board span:nth-child(9n + 3),
.example-board span:nth-child(9n + 6) {
  border-right: 2px solid rgba(74, 222, 128, 0.35);
}
.example-board span:nth-child(n + 19):nth-child(-n + 27),
.example-board span:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid rgba(74, 222, 128, 0.35);
}

/* ============================================================
   Download page
   ============================================================ */
.download-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.download-main {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.download-main .ver {
  font-size: 0.85rem;
  color: var(--green-1);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.download-main h2 {
  font-size: 1.8rem;
  margin: 6px 0 6px;
}
.download-main .filemeta {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.download-main .secondary-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}
.download-main .secondary-link:hover {
  text-decoration: underline;
}

.qr-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.qr-box .qr-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.qr-box .qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-box p {
  font-weight: 700;
  font-size: 0.95rem;
}
.qr-box small {
  color: var(--muted-2);
}

.sysreq {
  margin-top: 18px;
}
.sysreq li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-border);
  color: var(--muted);
  font-size: 0.95rem;
}
.sysreq li:last-child {
  border-bottom: none;
}
.sysreq li .check {
  color: var(--green-1);
  font-weight: 800;
}

.ios-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: var(--muted);
  font-size: 0.95rem;
}
.ios-note b {
  color: var(--blue);
}

@media (max-width: 860px) {
  .download-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open {
  border-color: rgba(74, 222, 128, 0.35);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.faq-q .plus {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--green-1);
  border-radius: 2px;
}
.faq-q .plus::before {
  width: 14px;
  height: 2px;
}
.faq-q .plus::after {
  width: 2px;
  height: 14px;
}
.faq-item.open .plus {
  transform: rotate(135deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============================================================
   Privacy / prose
   ============================================================ */
.prose {
  max-width: 760px;
  margin-inline: auto;
}
.prose h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  color: var(--text);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 12px;
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}
.prose a {
  color: var(--green-1);
  font-weight: 600;
}
.prose a:hover {
  text-decoration: underline;
}
.prose .updated {
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--surface-border);
  background: rgba(10, 10, 26, 0.5);
  padding-block: 52px 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 5px 0;
  transition: color 0.18s ease;
}
.footer-col a:hover {
  color: var(--green-1);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--muted-2);
  font-size: 0.88rem;
}
.footer-bottom .made {
  color: var(--muted-2);
}
.footer-bottom .made b {
  color: var(--green-1);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Scroll reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
