:root {
  --cream: #f6efe2;
  --card: #fdf9f0;
  --ink: #241f1a;
  --muted: #6f665a;
  --teal: #2f6d77;
  --pink: #f09cab;
  --amber: #f0ac52;
  --purple: #9b80c7;
  --peach: #f6c89a;
  --lead: #241f1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Nunito", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a:link { color: var(--teal); }
a:visited { color: #7d63a8; }

/* stained-glass strip along the very top */
.glass-strip {
  display: flex;
  height: 14px;
  background: var(--lead);
  gap: 3px;
  padding: 3px;
}
.glass-strip span { border-radius: 3px; }
.glass-strip span:nth-child(1) { flex: 3; background: var(--teal); }
.glass-strip span:nth-child(2) { flex: 2; background: var(--pink); }
.glass-strip span:nth-child(3) { flex: 4; background: var(--amber); }
.glass-strip span:nth-child(4) { flex: 2; background: var(--purple); }
.glass-strip span:nth-child(5) { flex: 3; background: var(--peach); }
.glass-strip span:nth-child(6) { flex: 2; background: var(--teal); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* hero */
.hero {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 40px;
}

.hero .icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 12px 32px rgba(36, 31, 26, 0.18);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 24px;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--teal);
  font-weight: 700;
  margin-top: 4px;
}

.hero .pitch {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.store-badge {
  display: inline-block;
  margin-top: 28px;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: scale(1.04); }
.store-badge img { height: 54px; display: block; }

/* screenshots */
.shots {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.shots img {
  width: min(280px, 80vw);
  border-radius: 24px;
  border: 4px solid var(--lead);
  box-shadow: 0 16px 40px rgba(36, 31, 26, 0.16);
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.feature {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border-top: 6px solid var(--teal);
  box-shadow: 0 6px 18px rgba(36, 31, 26, 0.07);
}
.feature:nth-child(2) { border-top-color: var(--amber); }
.feature:nth-child(3) { border-top-color: var(--pink); }
.feature:nth-child(4) { border-top-color: var(--purple); }

.feature h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* prose pages (privacy) */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose li { color: #3d372f; margin-bottom: 12px; }
.prose ul { padding-left: 24px; margin-bottom: 12px; }
.prose .effective { color: var(--muted); font-weight: 600; }
.prose a { color: var(--teal); }
.back-link, .back-link:visited {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* footer */
footer {
  background: var(--lead);
  color: #cfc7ba;
  margin-top: 48px;
  padding: 32px 0;
  text-align: center;
  font-size: 0.95rem;
}
footer a, footer a:visited { color: var(--peach); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .links { margin-bottom: 8px; }
footer .links a { margin: 0 12px; }

/* ——— content pages ——— */

.prose .lede { font-size: 1.1rem; color: #3d372f; }
.prose .updated { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.prose .disclaimer { color: var(--muted); font-size: 0.9rem; font-style: italic; }

.cta-box {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0 8px;
  box-shadow: 0 6px 18px rgba(36, 31, 26, 0.07);
}
.cta-box p { margin-bottom: 4px; font-weight: 700; }
.cta-box .store-badge { margin-top: 12px; }
.cta-box .store-badge img { height: 48px; }

.compare { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5dccb; vertical-align: top; }
.compare th { font-weight: 800; }
.compare td:first-child { font-weight: 700; white-space: nowrap; }

/* murals gallery */
.murals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.mural { margin: 0; }
.mural svg { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 8px 24px rgba(36, 31, 26, 0.12); }
.mural figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: 8px; }

/* shikaku demo */
.shikaku-wrap { margin: 24px 0; text-align: center; }
.shikaku-board {
  display: inline-grid;
  grid-template-columns: repeat(5, 56px);
  grid-template-rows: repeat(5, 56px);
  gap: 0;
  background: var(--card);
  border: 4px solid var(--lead);
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.shikaku-board .cell {
  border: 1px solid #e5dccb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}
.shikaku-board .cell.preview { outline: 3px solid var(--teal); outline-offset: -3px; }
.shikaku-status { margin-top: 12px; font-weight: 700; color: var(--muted); min-height: 1.5em; }
.shikaku-status.win { color: var(--teal); }
.shikaku-reset {
  margin-top: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* footer nav */
footer .explore { margin-bottom: 10px; font-size: 0.9rem; }
footer .explore a { margin: 0 8px; font-weight: 600; }
